-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add x-internal #64
Add x-internal #64
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -198,6 +198,7 @@ type Operation struct { | |
Servers []*Server `json:"servers,omitempty" yaml:"servers,omitempty"` | ||
Security []*SecurityRequirement `json:"security" yaml:"security"` | ||
XCodeSamples []*XCodeSample `json:"x-codeSamples,omitempty" yaml:"x-codeSamples,omitempty"` | ||
XInternal bool `json:"x-internal,omitempty" yaml:"x-internal,omitempty"` | ||
} | ||
|
||
// A workaround for missing omitnil functionality. | ||
|
@@ -213,6 +214,7 @@ type operationNilOmitted struct { | |
Deprecated bool `json:"deprecated,omitempty" yaml:"deprecated,omitempty"` | ||
Servers []*Server `json:"servers,omitempty" yaml:"servers,omitempty"` | ||
XCodeSamples []*XCodeSample `json:"x-codeSamples,omitempty" yaml:"x-codeSamples,omitempty"` | ||
XInternal bool `json:"x-internal,omitempty" yaml:"x-internal,omitempty"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What does the spec say about it ? Is it preferable if its omitted when its There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm. Can't find anything really 🙈 Maybe it's a bit unclear as this is an extension, so I'm not sure it's covered in the spec? Given that this is an extension, I'm leaning towards not showing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed, lets keep the |
||
} | ||
|
||
// MarshalYAML implements yaml.Marshaler for Operation. | ||
|
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.
Since this is an extension, it might be beneficial for the readers to indicate that this is interpreted by third-party tools, and the impact is only on visual rendering. No need for an essai :) just a quick note.
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.
Yes, that can be helpful. Added a quick note now.