Skip to content

Conversation

@Jefftree
Copy link
Collaborator

@Jefftree Jefftree commented Mar 1, 2022

Copied from the latest OpenAPI 3.1 spec: https://github.com/OAI/OpenAPI-Specification/blob/main/schemas/v3.1/schema.json#L1072-L1081

Add support for $ref to have a description alongside it in the same object in the proto model for OpenAPI V3.0 and V3.1. This is an expected property for 3.1 and a relaxed constraint for 3.0.

/assign @timburks

@Jefftree Jefftree requested a review from a team as a code owner March 1, 2022 19:06
string version = 6;
repeated NamedAny specification_extension = 7;
string summary = 8;
string summary = 7;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This change was generated automatically after running the regeneration script. Is this expected?

Copy link
Contributor

Choose a reason for hiding this comment

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

I've been manually changing this back to maintain backwards-compatibility of the protos. Could you do that here? Essentially I'm asking for the summary tag to be 7 and specification_extension should be 8.

Copy link
Contributor

Choose a reason for hiding this comment

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

That would also require regenerating OpenAPIv3.pb.go

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed. Updated both the .proto and .pb.go file.

@timburks timburks self-assigned this Mar 1, 2022
Copy link
Contributor

@timburks timburks left a comment

Choose a reason for hiding this comment

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

@Jefftree Thanks for these changes and updates! LGTM, will merge

@timburks timburks merged commit 418d86c into google:master Mar 14, 2022
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.

2 participants