Skip to content

Allow passing the value of the value property directly #54

@highsource

Description

@highsource

If a class has a value property then it should be possible to pass this directly, without the surrounding object.

For instance, instead of:

"propertyName" : {
    "content" : "ows:BoundingBox"
}

you should be able to do simply

"propertyName" : "ows:BoundingBox"

If the passed value is not an object (not an instance of the class), but the class has a value property and the value is an instance of that value property type (easy to check) then it gets autowrapped and marshalled.

See tomkralidis/csw4js#1.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions