Skip to content

Major Refactor! Migrate to pb33f/libopenapi #13

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

Merged
merged 17 commits into from
May 25, 2024
Merged

Conversation

sudorandom
Copy link
Owner

Resolves #12 and #11.

This refactor switches out github.com/swaggest/jsonschema-go and github.com/swaggest/openapi-go for github.com/pb33f/libopenapi to get access to several features: ordered items and more complete support for the 3.1 spec.

A couple things changed with the output:

  • The order of everything is all switches up but from now on paths and schema properties will appear in the same order as they are defined in the protobuf file as methods and fields.
  • components.requestBody is no longer used. The bodies are simply defined in This simplified a lot of things by not having an extra point of indirection
  • google.protobuf.Empty is now closer to the actual behavior in JSON (an empty object, {})
  • Adds more support for gnostic annotations, notably all the components tree
  • Adds support for:
    • google.protobuf.NullValue
    • google.protobuf.StringValue
    • google.protobuf.BytesValue
    • google.protobuf.BoolValue
    • google.protobuf.DoubleValue
    • google.protobuf.Int64Value
    • google.protobuf.Uint64Value
    • google.protobuf.FloatValue
    • google.protobuf.Int32Value

@sudorandom sudorandom merged commit 449637e into main May 25, 2024
2 checks passed
@sudorandom sudorandom deleted the major-refactor branch May 25, 2024 11:20
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.

Google Empty type not supported property
1 participant