Skip to content

Conversation

AllyW
Copy link
Contributor

@AllyW AllyW commented Mar 18, 2025

tsp model 1:

@doc("The output value.")
 value?: unknown;

output:

{
    "type": "any",
    "name": "value",
    "description": "The output value."
}

tsp model 2:

 @doc("Custom operation properties, populated only for a successful operation.")
  properties?: Record<unknown>;

output:

{
    "type": "object",
    "additionalProps": {
        "item": {
            "type": "any"
        }
    },
    "name": "properties",
    "description": "Custom operation properties, populated only for a successful operation."
}

@AllyW AllyW changed the title add support for any type of cmd schema add support for any type of cmd schema in typespec-aaz Mar 19, 2025
@AllyW AllyW merged commit f42e37b into Azure:dev Mar 19, 2025
3 checks passed
@AllyW AllyW mentioned this pull request Apr 14, 2025
@AllyW AllyW deleted the support-any-type branch May 21, 2025 08:58
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

Successfully merging this pull request may close these issues.

2 participants