Closed tobywf closed 4 years ago
Is there anyway we can have enum in there? Not 100% sure if default works for enum but I did not get validation error when I added something like below
"type": { "type": "string", "enum": [ "RESOURCE", “A”, “B” ], "default": "RESOURCE" },
Also, in comment, maybe not mention "Resource" if this will not always have RESOURCE as type.
Per https://json-schema.org/understanding-json-schema/reference/generic.html "It should be noted that const is merely syntactic sugar for an enum with a single element."
If/when we have other types we can change this to enum
but right now it's useful just to get this metadata field in for visibility and future proofing.
Issue #, if available: N/A
Description of changes: Add/allow a type field which maps to the type argument for the registry service. Consumers can assume
type
isRESOURCE
if not specified to remain backwards compatible.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.