Skip to content

Commit

Permalink
fix: add stale state to provider state diagram (#212)
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Bond <[email protected]>
  • Loading branch information
federicobond authored Oct 25, 2023
1 parent d0a87da commit 814e332
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion specification.json
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@
{
"id": "Requirement 2.4.2",
"machine_id": "requirement_2_4_2",
"content": "The `provider` MAY define a `status` field/accessor which indicates the readiness of the provider, with possible values `NOT_READY`, `READY`, or `ERROR`.",
"content": "The `provider` MAY define a `status` field/accessor which indicates the readiness of the provider, with possible values `NOT_READY`, `READY`, `STALE`, or `ERROR`.",
"RFC 2119 keyword": "MAY",
"children": []
},
Expand Down
5 changes: 4 additions & 1 deletion specification/sections/02-providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class MyProvider implements Provider {

#### Requirement 2.4.2

> The `provider` **MAY** define a `status` field/accessor which indicates the readiness of the provider, with possible values `NOT_READY`, `READY`, or `ERROR`.
> The `provider` **MAY** define a `status` field/accessor which indicates the readiness of the provider, with possible values `NOT_READY`, `READY`, `STALE`, or `ERROR`.
Providers without this field can be assumed to be ready immediately.

Expand All @@ -206,6 +206,9 @@ stateDiagram-v2
NOT_READY --> READY
READY --> ERROR
ERROR --> READY
READY --> STALE
STALE --> READY
STALE --> ERROR
```

see [provider status](../types.md#provider-status)
Expand Down

0 comments on commit 814e332

Please sign in to comment.