clowre / docserver Goto Github PK
View Code? Open in Web Editor NEWMerge and Serve OpenAPI/Swagger Documents
License: MIT License
Merge and Serve OpenAPI/Swagger Documents
License: MIT License
Two new endpoints, preferably at /health
and /ready
, should be added that return an OK response if the docserver is up and if the docserver is ready to render its views. This will help in backing the project's cloud native deployments.
Attempting to build a native image (./gradlew clean dockerbuildnative
) results in this error:
Error: com.oracle.svm.hosted.substitute.DeletedElementException: Unsupported type java.util.JapaneseImperialCalendar is reachable
To diagnose the issue, you can add the option --report-unsupported-elements-at-runtime. The unsupported element is then reported at run time when it is accessed the first time.
Detailed message:
Trace:
at parsing java.util.Calendar$Builder.build(Calendar.java:1508)
Call path from entry point to java.util.Calendar$Builder.build():
at java.util.Calendar$Builder.build(Calendar.java:1473)
at io.swagger.v3.parser.util.OpenAPIDeserializer.toDate(OpenAPIDeserializer.java:2624)
at io.swagger.v3.parser.util.OpenAPIDeserializer.getDecodedObject(OpenAPIDeserializer.java:2572)
at io.swagger.v3.parser.util.OpenAPIDeserializer.getSchema(OpenAPIDeserializer.java:2383)
at io.swagger.v3.parser.ResolverCache.loadRef(ResolverCache.java:159)
at io.swagger.v3.parser.processors.ExternalRefProcessor.processRefToExternalSchema(ExternalRefProcessor.java:89)
at io.swagger.v3.parser.processors.ExternalRefProcessor.processRefSchemaObject(ExternalRefProcessor.java:893)
at io.swagger.v3.parser.processors.ExternalRefProcessor.lambda$processRefToExternalPathItem$1(ExternalRefProcessor.java:339)
at io.swagger.v3.parser.processors.ExternalRefProcessor$$Lambda$2388/0x00000007c1fb2840.accept(Unknown Source)
at java.util.Optional.ifPresent(Optional.java:183)
at java.lang.Runtime$Version.toString(Runtime.java:1392)
at java.lang.String.valueOf(String.java:2951)
at java.lang.StringBuilder.append(StringBuilder.java:168)
at java.net.Proxy.<init>(Proxy.java:95)
at com.oracle.svm.jni.JNIJavaCallWrappers.jniInvoke_VARARGS_Proxy_constructor_4c292c8081165fc77e6ffffc00ffc9c7f9d770eb(generated:0)
In its current state, the docserver renders OpenAPI3.1 compliant JSON file at /docs.json
. It will be nice to have a similar endpoint at /docs.yaml
or /docs.yml
(or both) to render the combined documents in YAML format.
The title is self-describing :)
On errors, DefaultSwaggerResource#mergeSchemas()
returns a null. This is problematic on first load, since it leaves the server in "STARTING" state. Any errors in problematic schema loading mergeSchemas()
should be error-logged, and the flow should move to the next schema in line.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.