correct openapi schema

This commit is contained in:
bakito 2022-03-12 12:46:15 +01:00
parent e7b3c9969b
commit c346216424
No known key found for this signature in database
GPG Key ID: FAF93C1C384DD6B4
2 changed files with 8 additions and 10 deletions

View File

@ -316,7 +316,7 @@ type filterJSON struct {
URL string `json:"url"`
Name string `json:"name"`
RulesCount uint32 `json:"rules_count"`
LastUpdated string `json:"last_updated"`
LastUpdated string `json:"last_updated,omitempty"`
}
type filteringConfig struct {

View File

@ -1396,7 +1396,6 @@
'required':
- 'enabled'
- 'id'
- 'last_updated'
- 'name'
- 'rules_count'
- 'url'
@ -1434,6 +1433,10 @@
'type': 'array'
'items':
'$ref': '#/components/schemas/Filter'
'whitelist_filters':
'type': 'array'
'items':
'$ref': '#/components/schemas/Filter'
'user_rules':
'type': 'array'
'items':
@ -1451,14 +1454,7 @@
'description': 'Filtering URL settings'
'properties':
'data':
'properties':
'enabled':
'type': 'boolean'
'name':
'type': 'string'
'url':
'type': 'string'
'type': 'object'
'$ref': '#/components/schemas/Filter'
'url':
'type': 'string'
'whitelist':
@ -1860,6 +1856,8 @@
'description': 'Previously added URL containing filtering rules'
'type': 'string'
'example': 'https://filters.adtidy.org/windows/filters/15.txt'
'whitelist':
'type': 'boolean'
'QueryLogItem':
'type': 'object'
'description': 'Query log item'