-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(text)!: mark name
property of type
extension item as required
#495
fix(text)!: mark name
property of type
extension item as required
#495
Conversation
ACTION NEEDED Substrait follows the Conventional Commits The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification. |
@@ -10,6 +10,7 @@ properties: | |||
items: | |||
type: object | |||
additionalProperties: false | |||
required: [name] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't structure
also be required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marking that field as required results in:
unknown.yaml invalid
[
{
instancePath: '/types/0',
schemaPath: '#/properties/types/items/required',
keyword: 'required',
params: { missingProperty: 'structure' },
message: "must have required property 'structure'"
}
]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it. I found this paragraph on the site:
The structure field is optional. If not specified, the type class is considered to be fully opaque. This implies that a systems without built-in support for the type cannot manipulate values in any way, including moving and cloning. This may be useful for exotic, context-sensitive types, such as raw pointers or identifiers that cannot be cloned.
Sorry for the goose chase
name
property of type
extension item as requiredname
and structure
property of type
extension item as required
2309a73
to
3192890
Compare
name
and structure
property of type
extension item as requiredname
property of type
extension item as required
The spec on simple extensions
states:
And for type:
However this
name
field is not marked as required on the type objectdefinition in the schema. This PR marks this field as required to make sure it
can always be referenced.