Adds new property "deprecated" to Metadata schema. (#2794)

Signed-off-by: Tiago Alves Macambira <tmacam@burocrata.org>
This commit is contained in:
Tiago Alves Macambira 2023-04-18 18:22:31 -07:00 committed by GitHub
parent e9af969b48
commit 54c176610f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -99,6 +99,8 @@ type Metadata struct {
Binding *MetadataBinding `json:"binding,omitempty"`
// URL with additional information, such as docs.
URL *URL `json:"url,omitempty"`
// If set, specifies that the property is deprecated and should not be used in new configurations.
Deprecated bool `json:"deprecated,omitempty"`
}
// MetadataBinding is the type for the "binding" property in the "metadata" object.

View File

@ -143,6 +143,10 @@
"url": {
"$ref": "#/$defs/URL",
"description": "URL with additional information, such as docs."
},
"deprecated": {
"type": "boolean",
"description": "If set, specifies that the property is deprecated and should not be used in new configurations."
}
},
"additionalProperties": false,