Skip to content

Preserving comments from DSL when converting model to JSON #522

@gurleensethi-docker

Description

@gurleensethi-docker

When transforming the model file to json, add a way to get the comments as well.

type org
    relations
        // Read settings of a github organizations
        define read-settings: [user]

to

    {
        "computedUserset": {
            "doc": "Read settings of a github organizations"
            "relation":"read-settings"
        }
    },

This will be super helpful.

https://cloud-native.slack.com/archives/C06G1NNH47N/p1750694123109859

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions