Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Error generating lottie scheme code #2653

Open
EduardoPadilha opened this issue Sep 27, 2024 · 0 comments
Open

[BUG]: Error generating lottie scheme code #2653

EduardoPadilha opened this issue Sep 27, 2024 · 0 comments
Labels

Comments

@EduardoPadilha
Copy link

EduardoPadilha commented Sep 27, 2024

Issue Type

When trying to generate code from a schema I get an error

Context (Environment, Version, Language)

Input Format: json schema
Output Language: C#

CLI, npm, or app.quicktype.io: CLI and app.quicktype.io
Version: 23.0.170

Description

I'm trying to generate a c# class from the schema provided by lottie at https://lottiefiles.github.io/lottie-docs/schema/lottie.schema.json. I copy the raw into a utf-8 file and submit it to the CLI command or copy it directly from the link and paste it into the website https://app.quicktype.io/

Input Data

I think it is too big to isolate into something smaller and understandable, I will leave again the link of the schema provided:
https://lottiefiles.github.io/lottie-docs/schema/lottie.schema.json

Expected Behaviour / Output

Generate schema classes

Current Behaviour / Output

Nothing appears on the website and the CLI returns the message: "Error: s.codePointAt is not a function."

Steps to Reproduce

  1. Download the json schema from the above link
  2. Save it in a local file with the name "lottie.schema.json"
  3. Run the following command "quicktype -s schema lottie.schema.json -o src/Models.cs" in the same directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant