Skip to content

Commit

Permalink
Update JSON schema for new_qname (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter authored Feb 12, 2025
1 parent 4f160be commit 1ea1c25
Showing 1 changed file with 54 additions and 55 deletions.
109 changes: 54 additions & 55 deletions evrec/schema/new_qname.json
Original file line number Diff line number Diff line change
@@ -1,58 +1,57 @@
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"additionalProperties": true,
"required": [
"type",
"version",
"timestamp",
"qname"
],
"properties": {
"version": {
"type": "integer",
"minimum": 0
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"type": {
"const": "new_qname"
},
"initiator": {
"type": "string",
"enum": [
"client",
"resolver"
]
},
"qname": {
"description": "Query Name",
"$ref": "#/$defs/domain_name"
},
"qtype": {
"description": "Query Type",
"type": "integer",
"minimum": 0
},
"qclass": {
"description": "Query Class",
"type": "integer",
"minimum": 0
},
"flags": {
"description": "Flag Field (QR/Opcode/AA/TC/RD/TA/Z/RCODE)",
"type": "integer"
},
"rdlength": {
"type": "integer",
"minimum": 0
}
},
"$defs": {
"domain_name": {
"type": "string"
}
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://schema.dnstapir.se/v1/new_qname",
"type": "object",
"required": [
"type",
"version",
"qname"
],
"additionalProperties": true,
"properties": {
"type": {
"const": "new_qname"
},
"version": {
"minimum": 0,
"type": "integer"
},
"message_id": {
"type": "string",
"format": "uuid"
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"qclass": {
"description": "Query Class",
"type": "integer",
"minimum": 0
},
"qname": {
"description": "Query Name",
"type": "string"
},
"qtype": {
"description": "Query Type",
"type": "integer",
"minimum": 0
},
"rdlength": {
"type": "integer",
"minimum": 0
},
"flags": {
"description": "Flag Field (QR/Opcode/AA/TC/RD/TA/Z/RCODE)",
"type": "integer"
},
"initiator": {
"type": "string",
"enum": [
"client",
"resolver"
]
}
}
}

0 comments on commit 1ea1c25

Please sign in to comment.