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

IntelliJ does not show comments from JSON schema #222

Open
yngvark opened this issue Sep 9, 2024 · 1 comment
Open

IntelliJ does not show comments from JSON schema #222

yngvark opened this issue Sep 9, 2024 · 1 comment

Comments

@yngvark
Copy link
Contributor

yngvark commented Sep 9, 2024

Some random testing locally:

$ ok pkg add app app-lol
2024/09/09 10:29:34 WARN could not transform default map type to schema type variable=IamForCicd.AppGitHubRepo
2024/09/09 10:29:34 WARN could not transform default map type to schema type variable=IamForCicd.IacGitHubRepo
2024/09/09 10:29:34 INFO writing schema file path=_config/app-v8.0.4.schema.json configDir=_config schemaId=boilerplate/terraform/app-app-v8.0.4
2024/09/09 10:29:34 INFO app (v8.0.4) added to packages.yml with output folder name app-lol

Unfortunately, IntelliJ does not understand this structure:

image

Though this works:

image

@yngvark yngvark changed the title IntelliJ does not show comments from JSON schema for nested maps IntelliJ does not show comments from JSON schema Sep 9, 2024
@yngvark
Copy link
Contributor Author

yngvark commented Sep 9, 2024

Solution (irrelevant of IDE):

    "AlbHostRouting": {
      "type": "object",
      "description": "Add ALB host routing.",
      "default": {
        "Enable": false,
        "Internal": true
      },
      "properties": {
        "Enable": {
          "type": "boolean",
          "default": false,
          "description": "Add ALB host routing222222222222222222222222222."
        },
        "Internal": {
          "type": "boolean",
          "default": true
        }
      },
      "required": [
        "Enable",
        "Internal"
      ]
    },
   

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

1 participant