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

schema_registry: Return schemaType for /schemas/ids/<id> #5568

Merged
merged 2 commits into from
Jul 22, 2022

Conversation

BenPope
Copy link
Member

@BenPope BenPope commented Jul 22, 2022

Cover letter

If the schema type is not avro, then set schemaType field in the response.

Signed-off-by: Ben Pope [email protected]

Fixes #3633 (fix it even more)
Fixes #5576

Release notes

Improvements

  • Schema Registry: GET /schemas/ids/<id> now returns schemaType if the type is not avro.

If the schema type is not avro, then set schemaType field in the
response.

Signed-off-by: Ben Pope <[email protected]>
The `schemaType` is now returned if it's not avro.

Signed-off-by: Ben Pope <[email protected]>
@BenPope BenPope requested a review from VladLazar July 22, 2022 11:01
Copy link
Contributor

@VladLazar VladLazar 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 to me.
[Meant to approve]

@@ -2,7 +2,7 @@
"swagger": "2.0",
"info": {
"title": "Pandaproxy Schema Registry",
"version": "1.0.0"
"version": "1.0.1"
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious: is this version type exposed anywhere?

Copy link
Member Author

@BenPope BenPope Jul 22, 2022

Choose a reason for hiding this comment

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

curl -s localhost:8081/v1 | jq '.info.version'
"1.0.1"

Copy link
Member Author

Choose a reason for hiding this comment

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

Also, I should set up a better home for the swagger

@BenPope BenPope added the area/schema-registry Schema Registry service within Redpanda label Jul 22, 2022
@BenPope BenPope self-assigned this Jul 22, 2022
@BenPope
Copy link
Member Author

BenPope commented Jul 22, 2022

@mmedenjak mmedenjak added the kind/enhance New feature or request label Jul 22, 2022
@BenPope BenPope merged commit 63235a5 into redpanda-data:dev Jul 22, 2022
@BenPope
Copy link
Member Author

BenPope commented Jul 22, 2022

/backport v22.1.x

@BenPope
Copy link
Member Author

BenPope commented Jul 22, 2022

/backport v21.11.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda area/schema-registry Schema Registry service within Redpanda kind/enhance New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Schema Registry: return schemType for GET /schemas/ids/<id> Schema registry protobuf compatibility issue
5 participants