Skip to content

Commit 321a943

Browse files
committed
Update Domain schema and Domain Create/Update
1 parent 67d0f1e commit 321a943

File tree

1 file changed

+42
-23
lines changed

1 file changed

+42
-23
lines changed

openapi.yaml

Lines changed: 42 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2625,7 +2625,11 @@ paths:
26252625
content:
26262626
application/json:
26272627
schema:
2628-
$ref: '#/components/schemas/Domain'
2628+
required:
2629+
- domain
2630+
- type
2631+
allOf:
2632+
- $ref: '#/components/schemas/Domain'
26292633
responses:
26302634
'200':
26312635
description: |
@@ -2730,6 +2734,7 @@ paths:
27302734
content:
27312735
application/json:
27322736
schema:
2737+
required: domain
27332738
$ref: '#/components/schemas/Domain'
27342739
default:
27352740
$ref: '#/components/responses/ErrorResponse'
@@ -15771,10 +15776,6 @@ components:
1577115776
A domain zonefile in our DNS system. You must own the domain name and
1577215777
tell your registrar to use Linode's nameservers in order for a domain
1577315778
in our system to be treated as authoritative.
15774-
required:
15775-
- id
15776-
- domain
15777-
- type
1577815779
properties:
1577915780
id:
1578015781
type: integer
@@ -15795,6 +15796,8 @@ components:
1579515796
domain:
1579615797
type: string
1579715798
pattern: ([a-zA-Z0-9-_]{1,63}\.)+([a-zA-Z]{2,3}\.)?([a-zA-Z]{2,16}|xn--[a-zA-Z0-9]+\.?)
15799+
minLength: 1
15800+
maxLength: 255
1579815801
description: >
1579915802
The domain this Domain represents. Domain labels cannot be longer than
1580015803
63 characters and must conform to [RFC1035](https://tools.ietf.org/html/rfc1035).
@@ -15818,6 +15821,7 @@ components:
1581815821
enum:
1581915822
- disabled
1582015823
- active
15824+
default: active
1582115825
description: >
1582215826
Used to control whether this Domain is currently being rendered.
1582315827
example: active
@@ -15844,11 +15848,16 @@ components:
1584415848
x-linode-cli-display: 5
1584515849
retry_sec:
1584615850
type: integer
15847-
description: >
15851+
default: "0"
15852+
description: |
1584815853
The interval, in seconds, at which a failed refresh should be retried.
15849-
Valid values are 300, 3600, 7200, 14400, 28800, 57600,
15850-
86400, 172800, 345600, 604800, 1209600, and 2419200 - any other
15851-
value will be rounded to the nearest valid value.
15854+
15855+
* Valid values are
15856+
0, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200.
15857+
15858+
* Any other value is rounded up to the nearest valid value.
15859+
15860+
* A value of 0 is equivalent to the default value of 14400.
1585215861
example: 300
1585315862
master_ips:
1585415863
type: array
@@ -15871,34 +15880,44 @@ components:
1587115880
example: []
1587215881
expire_sec:
1587315882
type: integer
15874-
description: >
15883+
default: "0"
15884+
description: |
1587515885
The amount of time in seconds that may pass before this Domain is no longer
15876-
authoritative. Valid values are
15877-
300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600,
15878-
604800, 1209600, and 2419200 - any other value will be rounded to
15879-
the nearest valid value.
15886+
authoritative.
15887+
15888+
* Valid values are
15889+
0, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200.
15890+
15891+
* Any other value is rounded up to the nearest valid value.
15892+
15893+
* A value of 0 is equivalent to the default value of 1209600.
1588015894
example: 300
1588115895
refresh_sec:
1588215896
type: integer
15883-
description: >
15897+
default: "0"
15898+
description: |
1588415899
The amount of time in seconds before this Domain should be refreshed.
15885-
Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600,
15886-
604800, 1209600, and 2419200 - any other value will be rounded to
15887-
the nearest valid value.
15900+
15901+
* Valid values are
15902+
0, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200.
15903+
15904+
* Any other value is rounded up to the nearest valid value.
15905+
15906+
* A value of 0 is equivalent to the default value of 14400.
1588815907
example: 300
1588915908
ttl_sec:
1589015909
type: integer
15910+
default: "0"
1589115911
description: >
1589215912
"Time to Live" - the amount of time in seconds that this Domain's
1589315913
records may be cached by resolvers or other domain servers.
1589415914

15895-
* Valid values are 0, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800,
15896-
345600, 604800, 1209600, and 2419200 - any other value will be
15897-
rounded to the nearest valid value.
15915+
* Valid values are
15916+
0, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200.
1589815917

15899-
* ttl_sec will default to 0 if no value is provided.
15918+
* Any other value is rounded up to the nearest valid value.
1590015919

15901-
* A value of 0 is equivalent to a value of 86400.
15920+
* A value of 0 is equivalent to the default value of 86400.
1590215921
example: 300
1590315922
tags:
1590415923
x-linode-filterable: true

0 commit comments

Comments
 (0)