We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import "@cadl-lang/rest"; model Something { @key id: string; thisIsUpdatable: string; } @Cadl.Http.post op stuff(properties: UpdateableProperties<Something>): Something;
=>
"schemas": { "UpdateableProperties_Something": { "type": "object", "properties": { "id": { "type": "string" }, "thisIsUpdatable": { "type": "string" } }, "description": "The template for adding updateable properties.", "required": [ "id", "thisIsUpdatable" // <-- this should not be required ]
Playground Link
The text was updated successfully, but these errors were encountered:
There is a separate template for optional properties. This gets used in patch bodies for ARM: https://github.com/Azure/cadl-azure/blob/main/packages/cadl-azure-resource-manager/lib/arm.cadl#L92
Sorry, something went wrong.
@johanste can we close this?
No branches or pull requests
=>
Playground Link
The text was updated successfully, but these errors were encountered: