- SourceMeta name
- stylemetadata
- Base dialect
- https://json-schema.org/draft/2020-12/schema
- SourceMeta dialect
- https://json-schema.org/draft/2020-12/schema
- Bytes
- 6.897 bytes
- Bytes bundled
- 41.784 bytes
- Health
- 79%
- Dependencies
- 2
Dependencies
- At
- /properties/layers/items/properties/attributes/$ref
- At
- /properties/layers/items/properties/sampleData/$ref
Health issues
- Name
- top_level_title
- Message
- Set a concise non-empty title at the top level of the schema to explain what the definition is about
- Pointers
- Name
- top_level_description
- Message
- Set a non-empty description at the top level of the schema to explain what the definition is about in detail
- Pointers
- Name
- top_level_examples
- Message
- Set a non-empty examples array at the top level of the schema to illustrate the expected data
- Pointers
- Name
- enum_with_type
- Message
- Setting `type` alongside `enum` is considered an anti-pattern, as the enumeration choices already imply their respective types
- Pointers
- /properties/accessConstraints/enum - /properties/accessConstraints/type
- Name
- valid_examples
- Message
- Only include instances in the `examples` array that validate against the schema
- Description
- Invalid example instance at index 0
The value was expected to be an object that defines the property "queryables"
at instance location "/1/attributes"
at evaluate path "/items/properties/attributes/$ref/required"
The array value was expected to validate against the referenced schema
at instance location "/1/attributes"
at evaluate path "/items/properties/attributes/$ref"
The object value was expected to validate against the defined properties subschemas
at instance location "/1"
at evaluate path "/items/properties"
Every item in the array value was expected to validate against the given subschema
at instance location ""
at evaluate path "/items"
- Pointers
- /properties/layers/examples/0
- Name
- enum_with_type
- Message
- Setting `type` alongside `enum` is considered an anti-pattern, as the enumeration choices already imply their respective types
- Pointers
- /properties/layers/items/properties/type/enum - /properties/layers/items/properties/type/type
- Name
- description_trailing_period
- Message
- Descriptions should not end with a period to give user interfaces flexibility in presenting the text
- Pointers
- /properties/links/description
- Name
- enum_with_type
- Message
- Setting `type` alongside `enum` is considered an anti-pattern, as the enumeration choices already imply their respective types
- Pointers
- /properties/scope/enum - /properties/scope/type
- Name
- enum_to_const
- Message
- An `enum` of a single value can be expressed as `const`
- Pointers
- /properties/scope/enum
- Name
- unknown_format_prefix
- Message
- For interoperability purposes, the JSON Schema specification advises against the use of `format` values that are not explicitly defined by the specification
- Pointers
- /properties/stylesheets/items/properties/specification/format
{
"$id": "https://schemas.don.projects.digilab.network/schemas/api-register/pdok/_shared/stylemetadata",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"accessConstraints": {
"enum": [
"unclassified",
"confidential",
"restricted",
"secret",
"topSecret"
],
"examples": [
"unclassified"
],
"type": [
"string",
"null"
]
},
"dates": {
"examples": [
{
"creation": "2019-01-01T10:05:00Z",
"publication": "2019-01-01T11:05:00Z",
"receivedOn": "2019-02-01T11:05:00Z",
"revision": "2019-02-01T11:05:00Z",
"validTill": "2019-02-01T11:05:00Z"
}
],
"properties": {
"creation": {
"format": "date-time",
"type": [
"string",
"null"
]
},
"publication": {
"format": "date-time",
"type": [
"string",
"null"
]
},
"receivedOn": {
"format": "date-time",
"type": [
"string",
"null"
]
},
"revision": {
"format": "date-time",
"type": [
"string",
"null"
]
},
"validTill": {
"format": "date-time",
"type": [
"string",
"null"
]
}
},
"type": [
"object",
"null"
]
},
"description": {
"examples": [
"This topographic basemap style is designed to be\nused in situations with low ambient light.\n\nThe style supports datasets based on the TDS 6.1\nspecification."
],
"type": [
"string",
"null"
]
},
"id": {
"examples": [
"night"
],
"type": "string"
},
"keywords": {
"examples": [
[
"basemap",
"TDS",
"TDS 6.1",
"OGC API"
]
],
"items": {
"type": "string"
},
"type": [
"array",
"null"
]
},
"layers": {
"examples": [
[
{
"id": "vegetationsrf",
"sampleData": {
"href": "https://services.interactive-instruments.de/vtp/daraa/collections/vegetationsrf/items?f=json&limit=100",
"rel": "data",
"type": "application/geo+json"
},
"type": "polygon"
},
{
"attributes": [
{
"id": "f_code",
"type": "string"
}
],
"id": "hydrographycrv",
"sampleData": {
"href": "https://services.interactive-instruments.de/vtp/daraa/collections/hydrographycrv/items?f=json&limit=100",
"rel": "data",
"type": "application/geo+json"
},
"type": "line"
}
]
],
"items": {
"properties": {
"attributes": {
"$ref": "./queryables"
},
"description": {
"type": [
"string",
"null"
]
},
"id": {
"examples": [
"vegetationsrf"
],
"type": "string"
},
"sampleData": {
"$ref": "./link"
},
"type": {
"enum": [
"point",
"line",
"polygon",
"geometry",
"raster"
],
"examples": [
"polygon"
],
"type": [
"string",
"null"
]
}
},
"required": [
"id"
],
"type": [
"object",
"null"
]
},
"type": [
"array",
"null"
]
},
"links": {
"description": "The links may reference related resources. It is recommended to include\na link to a thumbnail with link relation `preview` (specified by RFC 6903)\nand the appropriate media type in the `type` parameter.\nThe thumbnail may be an image that is published as a resource in the API,\nit may reference an appropriate raster tile, a map request, etc.",
"examples": [
[
{
"href": "https://example.org/catalog/1.0/resources/night-thumbnail.png",
"rel": "preview",
"title": "thumbnail of the night style applied to OSM data from Daraa, Syria",
"type": "image/png"
}
]
],
"items": {
"$ref": "./link"
},
"type": [
"array",
"null"
]
},
"pointOfContact": {
"examples": [
"John Doe"
],
"type": [
"string",
"null"
]
},
"scope": {
"enum": [
"style"
],
"examples": [
"style"
],
"type": [
"string",
"null"
]
},
"stylesheets": {
"examples": [
[
{
"link": {
"href": "https://example.org/catalog/1.0/styles/night?f=mapbox",
"rel": "stylesheet",
"type": "application/vnd.mapbox.style+json"
},
"native": true,
"specification": "https://docs.mapbox.com/mapbox-gl-js/style-spec/",
"tilingScheme": "GoogleMapsCompatible",
"title": "Mapbox Style",
"version": "8"
},
{
"link": {
"href": "https://example.org/catalog/1.0/styles/night?f=sld10",
"rel": "stylesheet",
"type": "application/vnd.ogc.sld+xml;version=1.0"
},
"native": false,
"title": "OGC SLD",
"version": "1.0"
}
]
],
"items": {
"properties": {
"link": {
"$ref": "./link"
},
"native": {
"type": [
"boolean",
"null"
]
},
"specification": {
"format": "url",
"type": [
"string",
"null"
]
},
"tilingScheme": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"version": {
"type": [
"string",
"null"
]
}
},
"required": [
"link"
],
"type": [
"object",
"null"
]
},
"type": [
"array",
"null"
]
},
"title": {
"examples": [
"Topographic night style"
],
"type": [
"string",
"null"
]
},
"version": {
"examples": [
"1.0.0"
],
"type": [
"string",
"null"
]
}
},
"required": [
"id"
],
"type": "object",
"x-derived-from": [
"https://api.pdok.nl/brt/top10nl/ogc/v1/openapi.json#/components/schemas/style-metadata",
"https://api.pdok.nl/kadaster/bestuurlijkegebieden/ogc/v1/openapi.json#/components/schemas/style-metadata",
"https://api.pdok.nl/kadaster/brk-kadastrale-kaart/ogc/v1/openapi.json#/components/schemas/style-metadata",
"https://api.pdok.nl/kadaster/brt-achtergrondkaart/ogc/v1/openapi.json#/components/schemas/style-metadata",
"https://api.pdok.nl/lv/bag/ogc/v1-demo/openapi.json#/components/schemas/style-metadata",
"https://api.pdok.nl/lv/bag/ogc/v1/openapi.json#/components/schemas/style-metadata",
"https://api.pdok.nl/lv/bgt/ogc/v1/openapi.json#/components/schemas/style-metadata"
]
}