-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: free form annotation can be applied to top level type (#219)
- Loading branch information
Showing
10 changed files
with
122 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Kompendium | ||
project.version=2.3.0 | ||
project.version=2.3.1 | ||
# Kotlin | ||
kotlin.code.style=official | ||
# Gradle | ||
|
2 changes: 1 addition & 1 deletion
2
kompendium-annotations/src/main/kotlin/io/bkbn/kompendium/annotations/FreeFormObject.kt
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package io.bkbn.kompendium.annotations | ||
|
||
@Retention(AnnotationRetention.RUNTIME) | ||
@Target(AnnotationTarget.PROPERTY) | ||
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.CLASS) | ||
annotation class FreeFormObject |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"openapi": "3.0.3", | ||
"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": { | ||
"/test/required_param": { | ||
"get": { | ||
"tags": [], | ||
"summary": "required param", | ||
"description": "Cool stuff", | ||
"parameters": [], | ||
"responses": { | ||
"200": { | ||
"description": "A successful endeavor", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/FreeFormData" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"deprecated": false | ||
} | ||
} | ||
}, | ||
"components": { | ||
"schemas": { | ||
"FreeFormData": { | ||
"properties": { | ||
"data": { | ||
"additionalProperties": true, | ||
"type": "object" | ||
} | ||
}, | ||
"required": [ | ||
"data" | ||
], | ||
"type": "object" | ||
} | ||
}, | ||
"securitySchemes": {} | ||
}, | ||
"security": [], | ||
"tags": [] | ||
} |
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