Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Incorrect schema output using Record #146

Open
bdarcus opened this issue May 25, 2023 · 0 comments
Open

Incorrect schema output using Record #146

bdarcus opened this issue May 25, 2023 · 0 comments

Comments

@bdarcus
Copy link
Owner

bdarcus commented May 25, 2023

I get this warning:

Issue in line 31: quicktype cannot infer this type because there is no data about it in the input.
31:     pub templates: Option<HashMap<String, Option<serde_json::Value>>>,

... and indeed, the resulting Rust code doesn't accurately represent the model there.

Seems to be an upstream bug.

YousefED/typescript-json-schema#547

The problem is none of the schema-generators I have tried perfectly represent the model, or just crashes.

A brute force fix on this end would be a little script that adds the missing details?

@bdarcus bdarcus transferred this issue from bdarcus/csln-rs May 25, 2023
@bdarcus bdarcus changed the title Notes Incorrect schema output using Record May 25, 2023
bdarcus added a commit that referenced this issue May 26, 2023
Post-process the schema file to workaround upstream bug that seems
common in schema generators.

Refs: #146

Signed-off-by: Bruce D'Arcus <bdarcus@gmail.com>
bdarcus added a commit that referenced this issue May 26, 2023
Post-process the schema file to workaround upstream bug that seems
common in schema generators.

Refs: #146

Signed-off-by: Bruce D'Arcus <bdarcus@gmail.com>
bdarcus added a commit that referenced this issue May 26, 2023
Post-process the schema file to workaround upstream bug that seems
common in schema generators.

Refs: #146

Signed-off-by: Bruce D'Arcus <bdarcus@gmail.com>
bdarcus added a commit that referenced this issue May 26, 2023
Post-process the schema file to workaround upstream bug that seems
common in schema generators.

Refs: #146

Signed-off-by: Bruce D'Arcus <bdarcus@gmail.com>
bdarcus added a commit that referenced this issue May 26, 2023
Post-process the schema file to workaround upstream bug that seems
common in schema generators.

Refs: #146

Signed-off-by: Bruce D'Arcus <bdarcus@gmail.com>
bdarcus added a commit that referenced this issue May 26, 2023
Post-process the schema file to workaround upstream bug that seems
common in schema generators.

Refs: #146

Signed-off-by: Bruce D'Arcus <bdarcus@gmail.com>
bdarcus added a commit that referenced this issue May 26, 2023
Post-process the schema file to workaround upstream bug that seems
common in schema generators.

Refs: #146

Signed-off-by: Bruce D'Arcus <bdarcus@gmail.com>
bdarcus added a commit that referenced this issue May 26, 2023
Post-process the schema file to workaround upstream bug that seems
common in schema generators.

Refs: #146

Signed-off-by: Bruce D'Arcus <bdarcus@gmail.com>
bdarcus added a commit that referenced this issue May 26, 2023
Post-process the schema file to workaround upstream bug that seems
common in schema generators.

Refs: #146

Signed-off-by: Bruce D'Arcus <bdarcus@gmail.com>
bdarcus added a commit that referenced this issue May 26, 2023
Post-process the schema file to workaround upstream bug that seems
common in schema generators.

Refs: #146

Signed-off-by: Bruce D'Arcus <bdarcus@gmail.com>
bdarcus added a commit that referenced this issue May 26, 2023
Post-process the schema file to workaround upstream bug that seems
common in schema generators.

Refs: #146

Signed-off-by: Bruce D'Arcus <bdarcus@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant