question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting up "Models" section

See original GitHub issue

Hi! Is there an opportunity to change the “Models” section?

Currently, I have the following one (on this commit):

image

I’m not an experienced Swagger user but I think the issues are:

  1. The T model should not be presented.
  2. minimum: null/maximum: null for string and boolean seem redundant.
  3. minimum: -2147483648 for id: int32 isn’t appropriate, I want it to start with 0.
  4. kotlin.collections.List is strange, it’s a simple JSON array…
  5. io.github.servb.eShop.util.OptionalResult<io.github.servb.eShop.route.product.v1.ProductUsable> has the data: T field, but data: 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:closed
  • Created 4 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Wicparcommented, Mar 4, 2020

@SerVB I changed the model acquisition system in the new release. Please verify if your issue persists or not.

0reactions
Wicparcommented, Mar 13, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found