mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-27 04:39:00 +03:00
Updated swagger docs to v3.1, and fixed some 'required' definitions
This commit is contained in:
parent
262d714751
commit
78f75a06df
4 changed files with 8 additions and 11 deletions
|
@ -63,7 +63,7 @@
|
||||||
"symfony/string": "^6.2"
|
"symfony/string": "^6.2"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"cebe/php-openapi": "^1.7",
|
"devizzent/cebe-php-openapi": "dev-I-5_server_definition_fix as 1.1",
|
||||||
"devster/ubench": "^2.1",
|
"devster/ubench": "^2.1",
|
||||||
"infection/infection": "^0.27",
|
"infection/infection": "^0.27",
|
||||||
"openswoole/ide-helper": "~22.0.0",
|
"openswoole/ide-helper": "~22.0.0",
|
||||||
|
|
|
@ -3,18 +3,15 @@
|
||||||
"properties": {
|
"properties": {
|
||||||
"android": {
|
"android": {
|
||||||
"description": "The long URL to redirect to when the short URL is visited from a device running Android",
|
"description": "The long URL to redirect to when the short URL is visited from a device running Android",
|
||||||
"type": "string",
|
"type": ["string"]
|
||||||
"nullable": false
|
|
||||||
},
|
},
|
||||||
"ios": {
|
"ios": {
|
||||||
"description": "The long URL to redirect to when the short URL is visited from a device running iOS",
|
"description": "The long URL to redirect to when the short URL is visited from a device running iOS",
|
||||||
"type": "string",
|
"type": ["string"]
|
||||||
"nullable": false
|
|
||||||
},
|
},
|
||||||
"desktop": {
|
"desktop": {
|
||||||
"description": "The long URL to redirect to when the short URL is visited from a desktop browser",
|
"description": "The long URL to redirect to when the short URL is visited from a desktop browser",
|
||||||
"type": "string",
|
"type": ["string"]
|
||||||
"nullable": false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,13 +5,13 @@
|
||||||
}],
|
}],
|
||||||
"properties": {
|
"properties": {
|
||||||
"android": {
|
"android": {
|
||||||
"nullable": true
|
"type": ["null"]
|
||||||
},
|
},
|
||||||
"ios": {
|
"ios": {
|
||||||
"nullable": true
|
"type": ["null"]
|
||||||
},
|
},
|
||||||
"desktop": {
|
"desktop": {
|
||||||
"nullable": true
|
"type": ["null"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"openapi": "3.0.3",
|
"openapi": "3.1.0",
|
||||||
"info": {
|
"info": {
|
||||||
"title": "Shlink",
|
"title": "Shlink",
|
||||||
"description": "Shlink, the self-hosted URL shortener",
|
"description": "Shlink, the self-hosted URL shortener",
|
||||||
|
|
Loading…
Add table
Reference in a new issue