"crs": {
"description": "Coordinate reference system specified as [EPSG](http://www.epsg.org) code or [PROJ](https://proj4.org) definition. Defaults to `4326` (EPSG code 4326) unless the client explicitly requests a different coordinate reference system.",
"oneOf": [
{
"title": "EPSG Code",
"type": "integer",
"format": "epsg-code",
"example": 7099
},
{
"title": "PROJ definition",
"type": "string",
"format": "proj-definition",
"example": "+proj=moll +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"
}
],
"default": 4326
},
Invalid JSON obtained from the content of the AsyncAPI specification file
[ { code: 'OBJECT_ADDITIONAL_PROPERTIES',
params: [ 'oneOf' ],
message: 'Additional properties not allowed: oneOf',
path: '#/topics/data/publish/payload/properties/payload/properties/spatial_extent/properties/crs',
schemaId: 'http://asyncapi.hitchhq.com/v1/schema.json#',
description: 'A deterministic version of a JSON Schema object.',
[Symbol(z-schema/schema)]:
{ additionalProperties: false,
properties: [Object],
patternProperties: [Object],
description: 'A deterministic version of a JSON Schema object.',
type: 'object',
'__$validated': true },
[Symbol(z-schema/json)]:
{ asyncapi: '1.0.0',
info: [Object],
externalDocs: [Object],
baseTopic: 'openeo',
topics: [Object],
components: [Object] } } ]
I don't see this backed by the spec. It seems as if it is allowed to have things such as a default value and a description on the same level as oneOf etc. So it would be great to get a fix for this.