-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Derive schema/property descriptions from KDocs by default
- Loading branch information
Showing
11 changed files
with
198 additions
and
20 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
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
54 changes: 54 additions & 0 deletions
54
create-plugin/src/test/resources/expected/KDocs-expected.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,54 @@ | ||
{ | ||
"openapi" : "3.1.0", | ||
"info" : { | ||
"title" : "Open API Specification", | ||
"description" : "test", | ||
"version" : "1.0.0" | ||
}, | ||
"paths" : { | ||
"/v1/action" : { | ||
"post" : { | ||
"requestBody" : { | ||
"required" : true, | ||
"content" : { | ||
"application/json" : { | ||
"schema" : { | ||
"$ref" : "#/components/schemas/sources.KDocsClass" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"components" : { | ||
"schemas" : { | ||
"sources.KDocsClass" : { | ||
"type" : "object", | ||
"properties" : { | ||
"kdocsConstructorDerivedProperty" : { | ||
"type" : "string", | ||
"description" : "This field is called [kdocsConstructorDerivedProperty]." | ||
}, | ||
"kdocsConstructorParameter" : { | ||
"type" : "string", | ||
"description" : "This field is called [kdocsConstructorParameter].\nTis is another line with\n* This is another line with extra *\n* This \\is another \\*line with extra *" | ||
}, | ||
"kdocsLateinitVar" : { | ||
"type" : "string", | ||
"description" : "This field is called [kdocsLateinitVar]." | ||
}, | ||
"kdocsProperty" : { | ||
"type" : "string", | ||
"description" : "This field is called [kdocsProperty]." | ||
}, | ||
"noKdocs" : { | ||
"type" : "string" | ||
} | ||
}, | ||
"description" : "This class contains fields with kdocs.", | ||
"required" : [ "kdocsConstructorParameter", "noKdocs", "kdocsConstructorDerivedProperty", "kdocsLateinitVar" ] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.