mirror of
https://git.dn42.dev/dn42/registry.git
synced 2025-08-07 10:16:24 +08:00
Merge branch 'schema-changes' of dn42/registry into master
This commit is contained in:
commit
9c08a12282
5 changed files with 10 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
||||||
schema: DNS-SCHEMA
|
schema: DNS-SCHEMA
|
||||||
ref: dn42.domain
|
ref: dn42.domain
|
||||||
key: domain required single primary schema
|
key: domain required single primary schema
|
||||||
key: nserver required multiple > [domain name] [ip addr]
|
key: nserver required multiple > [domain-name] [ip-addr]
|
||||||
key: status required single > {EVALPEND|CONNECT} [timestamp]
|
key: status required single > {EVALPEND|CONNECT} [timestamp]
|
||||||
key: descr optional single
|
key: descr optional single
|
||||||
key: mnt-by required multiple lookup=dn42.mntner
|
key: mnt-by required multiple lookup=dn42.mntner
|
||||||
|
|
|
@ -3,7 +3,7 @@ ref: dn42.inet6num
|
||||||
key: inet6num required single schema
|
key: inet6num required single schema
|
||||||
key: cidr required single primary
|
key: cidr required single primary
|
||||||
key: netname required single
|
key: netname required single
|
||||||
key: nserver optional multiple
|
key: nserver optional multiple > [domain-name]
|
||||||
key: country optional multiple
|
key: country optional multiple
|
||||||
key: descr optional single
|
key: descr optional single
|
||||||
key: status optional single > {ALLOCATED|ASSIGNED} {PI|PA|}
|
key: status optional single > {ALLOCATED|ASSIGNED} {PI|PA|}
|
||||||
|
|
|
@ -3,7 +3,7 @@ ref: dn42.inetnum
|
||||||
key: inetnum required single schema
|
key: inetnum required single schema
|
||||||
key: cidr required single primary
|
key: cidr required single primary
|
||||||
key: netname required single
|
key: netname required single
|
||||||
key: nserver optional multiple
|
key: nserver optional multiple > [domain-name]
|
||||||
key: country optional multiple
|
key: country optional multiple
|
||||||
key: descr optional single
|
key: descr optional single
|
||||||
key: status optional single > {ALLOCATED|ASSIGNED} {PI|PA|}
|
key: status optional single > {ALLOCATED|ASSIGNED} {PI|PA|}
|
||||||
|
|
|
@ -8,7 +8,7 @@ key: tech-c optional multiple lookup=dn42.person,dn42.r
|
||||||
key: auth optional multiple > [method] [value]...
|
key: auth optional multiple > [method] [value]...
|
||||||
key: org optional multiple lookup=dn42.organisation
|
key: org optional multiple lookup=dn42.organisation
|
||||||
key: abuse-mailbox optional single
|
key: abuse-mailbox optional single
|
||||||
key: sha512-pw optional single
|
key: sha512-pw deprecate single
|
||||||
key: remarks optional multiple
|
key: remarks optional multiple
|
||||||
key: source required single lookup=dn42.registry
|
key: source required single lookup=dn42.registry
|
||||||
mnt-by: DN42-MNT
|
mnt-by: DN42-MNT
|
||||||
|
|
|
@ -10,6 +10,8 @@ key: mnt-by required multiple lookup=dn42.mntner > [mntner]
|
||||||
key: remarks optional multiple > [text]...
|
key: remarks optional multiple > [text]...
|
||||||
mnt-by: DN42-MNT
|
mnt-by: DN42-MNT
|
||||||
remarks: # option descriptions
|
remarks: # option descriptions
|
||||||
|
Attribute names must match /[a-zA-Z]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?/.
|
||||||
|
+
|
||||||
required
|
required
|
||||||
: object required to have at least one
|
: object required to have at least one
|
||||||
optional
|
optional
|
||||||
|
@ -38,12 +40,12 @@ remarks: # option descriptions
|
||||||
* must come last in option list
|
* must come last in option list
|
||||||
+
|
+
|
||||||
[label] string value. A positional string argument required.
|
[label] string value. A positional string argument required.
|
||||||
Text inside brackets represent a label for the string.
|
Text inside brackets represent a label for the string and must match the same rules as attribute names.
|
||||||
If follwed by '...' values are gathered as an array.
|
If follwed by '...' values are gathered as an array.
|
||||||
+
|
+
|
||||||
{enum1|enum2|} enumeration. One option in pipe('|') deliniation is allowed.
|
{enum1|enum2|} enumeration. One option in pipe('|') deliniation is allowed.
|
||||||
If there is a trailing pipe it means the enum is optional.
|
If there is a trailing pipe it means the enum is optional. Enum values must match the same rules as attribute names.
|
||||||
+
|
+
|
||||||
label=str keyword argument. Label for value with type 'str', 'int', or 'decimal'
|
label=str keyword argument. Label for value with type 'str', 'int', or 'decimal'. The label must match the same rules as attribute names.
|
||||||
+
|
+
|
||||||
'literal' Literal value. literal text value.
|
'literal' Literal value. literal text value which must not contain any whitespace or single quotes.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue