Skip to content

Commit

Permalink
Wwendyc playwrighttesting microsoft.azure playwright service 2023 10 …
Browse files Browse the repository at this point in the history
…01 preview (#25889)

* Updated readme.md for openapi subtype

* Updated swagger spec to remove required for read-only property

* Adding optional to dashboard Uri

* Made readonly fields as optional for data-plane
  • Loading branch information
mjmadhu authored Sep 21, 2023
1 parent 6d479c6 commit 68d03f9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
"resource": {
"id": "00000000-0000-0000-0000-000000000000",
"name": "sampleAccessToken",
"createdAt": "2021-09-28T12:32:33Z",
"expiryAt": "2022-09-28T12:32:33Z",
"state": "Active"
"expiryAt": "2022-09-28T12:32:33Z"
}
},
"responses": {
Expand Down
4 changes: 2 additions & 2 deletions specification/playwrighttesting/PlaywrightTesting/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,15 @@ model AccessToken {

@doc("The access-token createdAt utcDateTime.")
@visibility("read")
createdAt: utcDateTime;
createdAt?: utcDateTime;

@doc("The access-token expiryAt utcDateTime.")
@visibility("read", "create")
expiryAt: utcDateTime;

@doc("The access-token state - Active | Expired.")
@visibility("read")
state: AccessTokenState;
state?: AccessTokenState;
}

@doc("The access-token state.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
"resource": {
"id": "00000000-0000-0000-0000-000000000000",
"name": "sampleAccessToken",
"createdAt": "2021-09-28T12:32:33Z",
"expiryAt": "2022-09-28T12:32:33Z",
"state": "Active"
"expiryAt": "2022-09-28T12:32:33Z"
}
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,7 @@
"required": [
"id",
"name",
"createdAt",
"expiryAt",
"state"
"expiryAt"
]
},
"AccessTokenState": {
Expand Down

0 comments on commit 68d03f9

Please sign in to comment.