You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I was working through our (seeming non-standard) case and I found an unexpected result.
We've got a TriggerSchema and a CreateSchema that both have a reference to the BasicDisplaySchema. When we generate the types, we end up with a lot of identical BasicDisplaySchema interfaces (BasicDisplaySchema, BasicDisplaySchema1, etc).
The declaration of the schemas is identical except for the description:
display: {description: 'Configures the UI for this create.',$ref: BasicDisplaySchema.id},
Since these are both references to the same schema, despite their different description, it would make sense for them to generate a single, canonical BasicDisplaySchema. It's totally possible that this is by design, but if it's either something we can fix (or make configurable), that would be awesome! I can post the full schema or any other resources if that's helpful.
Thanks a bunch!
The text was updated successfully, but these errors were encountered:
Hi @xavdid! Thanks for the suggestion. This is already tracked in #132 (and enhanced in #119). If you'd like to take a shot at fixing this, PRs are welcome!
Ah, perfect! I'll look through those and see if I can't get something rolling. Though, it being against spec certainly puts a damper on it. I've got a lot of control over the source json though, so I can probably adapt it to be compliant.
Hello! I was working through our (seeming non-standard) case and I found an unexpected result.
We've got a TriggerSchema and a CreateSchema that both have a reference to the BasicDisplaySchema. When we generate the types, we end up with a lot of identical
BasicDisplaySchema
interfaces (BasicDisplaySchema
,BasicDisplaySchema1
, etc).The declaration of the schemas is identical except for the description:
Trigger (source):
Create (source):
Since these are both references to the same schema, despite their different description, it would make sense for them to generate a single, canonical
BasicDisplaySchema
. It's totally possible that this is by design, but if it's either something we can fix (or make configurable), that would be awesome! I can post the full schema or any other resources if that's helpful.Thanks a bunch!
The text was updated successfully, but these errors were encountered: