Comments (4)
can you provide an open-api spec, where you see this issue
from rapipdf.
Here is a minimal api spec:
I guess the problem is, that schemaToPdf does not use getTypeInfo(). Maybe this could be added with an option
BTW: I think the code needs a general refactoring. Works in general, good job, but structure, naming, etc. needs to be improved (no offense intended :-))
from rapipdf.
Currently we show type, format, patterns and constrain
info for query, form, path and header
params.
For request-body
which generally is an object we are having some internal discussion on how best we can put this info in a printable manner without skewing the objects indentation structure. We have some designs that we are running through our test cases and collecting feedbacks from some of our clients.
we do have a plan to show this info and as you correctly mentioned we already have done some ground work for it getTypeInfo()
.
Regarding the code, one of our top priority is apply a JS style linter . If you are willing, I am happy to take a PR on this. the first step would be to just lint it without changing any names, thereafter we visit the rest
from rapipdf.
in release 2.0.0
code has been refactored and JS linter is applied. Type info about field types are now printed in the object model.
from rapipdf.
Related Issues (20)
- support for openapi v3.1 HOT 3
- Attribute pdf(-alternate)-color is not applied to toc HOT 1
- Using content to define serialization is not supported in query
- Tool randomly merges two words into one when having description. HOT 1
- anyOf does not work
- feat: add header
- Support images
- Tables aren't being formatted properly
- content application/json in header return error : rapipdf-min.js:33145 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'deprecated')
- Add images from description markdown to PDF
- when 2 operations have the same input schema definitions, the requests in the PDF output are not displayed HOT 3
- 中文乱码,如何解决? HOT 3
- Demo pages don't work for private content HOT 6
- Feature Request: Support for Webhooks (Callbacks)
- Support Dictionary<string, string>
- Add response headers
- Wrong PDF rendering with basic OpenAPI description HOT 2
- Applying the format value to the type?
- The markdown in parameters property description or in response schema property description is not convert to right html text.
- Hide Request types
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 rapipdf.