Skip to content

Compilation failure #896

@fruzitent

Description

@fruzitent
error: proc macro panicked
 --> src/main.rs:2:1
  |
2 | typify::import_types!("./src/devContainer.base.schema.json");
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = help: message: not yet implemented: invalid (or unexpected) schema:
          {
            "description": "Indicates whether a GPU is required. The string \"optional\" indicates that a GPU is optional. An object value can be used to configure more detailed requirements.",
            "type": [
              "boolean",
              "string"
            ],
            "enum": [
              true,
              false,
              "optional"
            ]
          }

error: could not compile `foo` (bin "foo") due to 1 previous error

If you comment out https://github.com/devcontainers/spec/blob/113500f4125e0f14c9293adf4d8d94a861e0ec11/schemas/devContainer.base.schema.json#L454-L465 it compiles

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions