Comments (2)
As long as it's not supported directly, because it'd add non standard to OpenApi properties to the scheme, you can still achieve it with document processor:
Let me know if it works for you :)
from javalin-openapi.
For those who might be interested:
options.withDefinitionConfiguration((s, config) -> {
/* the rest of the configuration .... */
config.withDefinitionProcessor(content -> { // you can add whatever you want to this document using your favourite json api
ObjectNode logo = new ObjectNode(JsonNodeFactory.instance);
logo.putIfAbsent("url", new TextNode("https://redocly.github.io/redoc/example-logo.png"));
logo.putIfAbsent("backgroundColor", new TextNode("#FFFFFF"));
logo.putIfAbsent("altText", new TextNode("Example logo"));
((ObjectNode)content.findValue("info")).putIfAbsent("x-logo", logo);
return content.toPrettyString();
});
from javalin-openapi.
Related Issues (20)
- Enum values with hyphens or starting with numbers don't end up in the generated OpenAPI spec HOT 2
- ClientCredentials flowType string with tralling space HOT 4
- OpenAPI SecuritySchemes HOT 9
- Release 5.6.3
- Javalin OpenAPI 6.x Roadmap
- OpenAPI type validation HOT 1
- SwaggerHandler doesnt support native swagger library HOT 1
- javalin code generation from openapi spec file HOT 1
- OpenAPI server generator (schema-first) for Javalin HOT 2
- Example for object does not work HOT 3
- kapt is in maintenance mode HOT 1
- Response Headers are not possible to defined HOT 1
- Add examples to @OpenApiResponse
- Examples in OpenApiResponse HOT 1
- Trouble getting javalin-openapi to produce any output? HOT 5
- Encountering "no api definition provided" Error with Javalin OpenAPI Annotations HOT 1
- Support all utility OpenApi annotations on fields
- Programatically Define Documentation HOT 1
- Kotlin vs. OpenApi Nullable Properties: Best Practices? HOT 4
- Groovy scripting engine does not support sources compiled on JDK21
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javalin-openapi.