-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: References for for protobuf objects (#466)
- Loading branch information
Showing
9 changed files
with
709 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127 changes: 127 additions & 0 deletions
127
protobuf-java-converter/src/test/resources/T0001__simpletestmessage_post.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
{ | ||
"openapi": "3.1.0", | ||
"jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema", | ||
"info": { | ||
"title": "Test API", | ||
"version": "1.33.7", | ||
"description": "An amazing, fully-ish 😉 generated API spec", | ||
"termsOfService": "https://example.com", | ||
"contact": { | ||
"name": "Homer Simpson", | ||
"url": "https://gph.is/1NPUDiM", | ||
"email": "[email protected]" | ||
}, | ||
"license": { | ||
"name": "MIT", | ||
"url": "https://github.com/bkbnio/kompendium/blob/main/LICENSE" | ||
} | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "https://myawesomeapi.com", | ||
"description": "Production instance of my API" | ||
}, | ||
{ | ||
"url": "https://staging.myawesomeapi.com", | ||
"description": "Where the fun stuff happens" | ||
} | ||
], | ||
"paths": { | ||
"/": { | ||
"post": { | ||
"tags": [], | ||
"summary": "Great Summary!", | ||
"description": "testing more", | ||
"parameters": [], | ||
"requestBody": { | ||
"description": "You gotta send it", | ||
"required": true | ||
}, | ||
"responses": { | ||
"200": { | ||
"description": "A Successful Endeavor", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/SimpleTestMessage" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"deprecated": false | ||
}, | ||
"parameters": [] | ||
} | ||
}, | ||
"webhooks": {}, | ||
"components": { | ||
"schemas": { | ||
"SimpleTestMessage": { | ||
"type": "object", | ||
"properties": { | ||
"myTestDouble": { | ||
"type": "number", | ||
"format": "double" | ||
}, | ||
"myTestFloat": { | ||
"type": "number", | ||
"format": "float" | ||
}, | ||
"myTestInt32": { | ||
"type": "number", | ||
"format": "int32" | ||
}, | ||
"myTestInt64": { | ||
"type": "number", | ||
"format": "int64" | ||
}, | ||
"myTestUint32": { | ||
"type": "number", | ||
"format": "int32" | ||
}, | ||
"myTestUint64": { | ||
"type": "number", | ||
"format": "int64" | ||
}, | ||
"myTestSint32": { | ||
"type": "number", | ||
"format": "int32" | ||
}, | ||
"myTestSint64": { | ||
"type": "number", | ||
"format": "int64" | ||
}, | ||
"myTestFixed32": { | ||
"type": "number", | ||
"format": "int32" | ||
}, | ||
"myTestFixed64": { | ||
"type": "number", | ||
"format": "int64" | ||
}, | ||
"myTestSfixed32": { | ||
"type": "number", | ||
"format": "int32" | ||
}, | ||
"myTestSfixed64": { | ||
"type": "number", | ||
"format": "int64" | ||
}, | ||
"myTestBool": { | ||
"type": "boolean" | ||
}, | ||
"myTestBytes": { | ||
"type": "string" | ||
}, | ||
"myTestString": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
"securitySchemes": {} | ||
}, | ||
"security": [], | ||
"tags": [] | ||
} |
Oops, something went wrong.