Skip to content

Conversation

AllyW
Copy link
Contributor

@AllyW AllyW commented Mar 20, 2025

tsp encoding with default value:

  @doc("Time window during which the error percentage should be evaluated in seconds.")
  @encode(DurationKnownEncoding.seconds, int32)
  errorRateTimeWindowInSeconds?: duration = duration.fromISO("PT60S");

output:

{
    "type": "integer32",
    "name": "errorRateTimeWindowInSeconds",
    "description": "Time window during which the error percentage should be evaluated in seconds.",
    "default": {
        "value": 60
    }
}

@AllyW AllyW force-pushed the encoding-default branch from e3fe6ac to e486668 Compare April 9, 2025 02:27
@AllyW AllyW force-pushed the encoding-default branch from e486668 to 9f202d9 Compare April 23, 2025 05:49
@AllyW AllyW force-pushed the encoding-default branch from 9f202d9 to 90e14e7 Compare April 23, 2025 06:46
@AllyW AllyW changed the title Add support for binary request body and encoding and its default value Add support for encoding and its default value Apr 23, 2025
@AllyW AllyW merged commit 67af8a7 into Azure:dev Apr 23, 2025
3 checks passed
@AllyW AllyW deleted the encoding-default branch May 21, 2025 08:56
@necusjz necusjz mentioned this pull request Jul 9, 2025
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