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

[Feature request]: Create a command to import schema from sample JSON #1

Open
Laskewitz opened this issue Aug 11, 2022 · 0 comments
Open
Assignees
Labels
feature request New feature or request

Comments

@Laskewitz
Copy link
Owner

Waht feature would you like to see?

I would like to see a command in the extension that gives me the possibility to convert sample JSON to a schema with all the recommended properties already added to the Open API v2 file.

For instance, the following JSON:

{
    "displayName": "John Doe",
    "age": 42
}

Should generate the following schema:

{
    "displayName": {
        "x-ms-summary": "Display Name",
        "description": "Description.",
        "type": "string"
    },
    "age": {
        "x-ms-summary": "Age",
        "description": "Description.",
        "type": "integer",
        "format": "int32"
    }
}
@Laskewitz Laskewitz added the feature request New feature or request label Aug 11, 2022
@Laskewitz Laskewitz self-assigned this Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant