Skip to content

invalid schema of as_bytes input in the sample hello-world processor #2316

@ricardogsilva

Description

@ricardogsilva

The as_bytes input defined in the process metadata for the hello-world processor defines its own type as 'bool', as seen at:

'as_bytes': {
'title': 'As bytes',
'description': 'Whether to force return as bytes',
'schema': {
'type': 'bool',
'default': False
},
'minOccurs': 0,
'maxOccurs': 1,
'keywords': ['as_bytes']
},

'bool' does not refer to a valid type in JSON Schema. The type should be declared as 'boolean' instead.

I'm not sure why but the published OGC API Processes standard does not refer to JSON Schema directly, but rather seems to duplicate the definitions in the standard. Regardless, it also specifies a value of 'boolean' instead of 'bool', as seen at:

https://schemas.opengis.net/ogcapi/processes/part1/1.0/openapi/schemas/schema.yaml

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions