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

The application panicked (crashed). #287

Closed
ctron opened this issue May 9, 2023 · 1 comment
Closed

The application panicked (crashed). #287

ctron opened this issue May 9, 2023 · 1 comment

Comments

@ctron
Copy link

ctron commented May 9, 2023

Schema: https://github.com/oasis-tcs/csaf/blob/master/csaf_2.0/json_schema/provider_json_schema.json

Started with:

cargo typify provider_json_schema.json

Results in:

The application panicked (crashed).
Message:  key publisher is missing
Location: /home/abc/.cargo/registry/src/github.com-1ecc6299db9ec823/typify-impl-0.0.12/src/convert.rs:967

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
@ahl
Copy link
Collaborator

ahl commented May 10, 2023

I've updated the error:

The application panicked (crashed).
Message:  external references are not supported: https://docs.oasis-open.org/csaf/csaf/v2.0/csaf_json_schema.json#/properties/document/properties/publisher
Location: typify-impl/src/convert.rs:963

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

Here's the offending schema:

    "publisher": {
      "title": "Publisher",
      "description": "Provides information about the publisher of the CSAF documents in this repository.",
      "$ref": "https://docs.oasis-open.org/csaf/csaf/v2.0/csaf_json_schema.json#/properties/document/properties/publisher"
    },

I think this is a dup of #201

@ahl ahl closed this as completed May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants