Skip to content
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

feat: add extensions to info #7

Merged
merged 1 commit into from
Nov 7, 2022
Merged

Conversation

danielgtaylor
Copy link
Contributor

From the Open API 3.1 spec on the top-level info object:

This object MAY be extended with Specification Extensions.

This PR implements support for that, which is relevant for supporting Restish Open API extensions which let you e.g. modify the name, description, etc or hide operations from the CLI directly from your Open API spec.

I added a basic test which covers the newly added lines. I see the Go formatter changed a couple of things - let me know if that's a problem and I'll undo those changes.

Part of danielgtaylor/restish#115

Copy link
Member

@daveshanley daveshanley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I knew I had missed a couple of these extension points! Thank you for making libopenapi better and for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants