Setting up "Models" section
See original GitHub issueHi! Is there an opportunity to change the “Models” section?
Currently, I have the following one (on this commit):
I’m not an experienced Swagger user but I think the issues are:
- The
T
model should not be presented. minimum: null/maximum: null
forstring
andboolean
seem redundant.minimum: -2147483648
forid: int32
isn’t appropriate, I want it to start with0
.kotlin.collections.List
is strange, it’s a simple JSON array…io.github.servb.eShop.util.OptionalResult<io.github.servb.eShop.route.product.v1.ProductUsable>
has thedata: T
field, butdata: io.github.servb.eShop.route.product.v1.ProductUsable
is more logical here.
I’ve briefly checked the annotations but haven’t found suitable ones.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Creating a Basic Model
Models always reside in a Models subdirectory of the production project. This is just like in the last course section when we create...
Read more >Part 4, add a model to an ASP.NET Core MVC app
Migrations is a set of tools that create and update a database to match the data model. From the Tools menu, select NuGet...
Read more >Django Tutorial Part 3: Using models - Learn web development
To be able to design and create your own models, choosing fields appropriately. Overview. Django web applications access and manage data through ...
Read more >24 Model building | R for Data Science
The previous chapter focussed on simulated datasets. This chapter will focus on real data, showing you how you can progressively build up a...
Read more >Slicing a Model to Peer Inside
Tip: To create a planimetric view like an architect, place the section plane 48 inches above the floor's surface. This placement usually enables...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@SerVB I changed the model acquisition system in the new release. Please verify if your issue persists or not.
these are separate issues… Currently the model is made with data classes and serialised from it. I’ll have to change the whole model system to make it work like that. This can be quick fixed with a separate object mapper that serialises it to string in the openapi.json endpoint. Also, currently there are no @min @max annotations. Though it can be added quite rapidly iirc.