Commit bbf3e2a3 authored by Michel Roy's avatar Michel Roy
Browse files

fixed issue yaml contains json

parent 75b88ba6
Pipeline #5108 running with stage
......@@ -58,9 +58,6 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"apInfo": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ApInfo"
......@@ -68,8 +65,6 @@
}
}
}
}
}
},
"400": {
"$ref": "#/components/responses/400"
......@@ -123,9 +118,6 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"staInfo": {
"type": "array",
"items": {
"$ref": "#/components/schemas/StaInfo"
......@@ -133,8 +125,6 @@
}
}
}
}
}
},
"400": {
"$ref": "#/components/responses/400"
......@@ -176,18 +166,9 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"subscriptionLinkList"
],
"properties": {
"subscriptionLinkList": {
"$ref": "#/components/schemas/SubscriptionLinkList"
}
}
},
"example": {
"subscriptionLinkList": {
"_links": {
"self": {
"href": "http://meAppServer.example.com/wai/v2/subscriptions"
......@@ -207,7 +188,6 @@
}
}
}
}
},
"400": {
"$ref": "#/components/responses/400"
......@@ -242,24 +222,9 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"notificationSubscription": {
"oneOf": [
{
"$ref": "#/components/schemas/AssocStaSubscription"
},
{
"$ref": "#/components/schemas/StaDataRateSubscription"
}
],
"discriminator": {
"propertyName": "subscriptionType"
}
}
"$ref": "#/components/schemas/InlineSubscription"
},
"example": {
"notificationSubscription": {
"subscriptionType": "AssocStaSubscription",
"callbackReference": "http://meAppClient.example.com/wai/v2/notifications/1",
"expiryDeadline": {
......@@ -274,8 +239,6 @@
}
}
}
}
}
},
"responses": {
"201": {
......@@ -283,25 +246,9 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"notificationSubscription": {
"oneOf": [
{
"$ref": "#/components/schemas/AssocStaSubscription"
},
{
"$ref": "#/components/schemas/StaDataRateSubscription"
}
],
"discriminator": {
"propertyName": "subscriptionType"
}
}
}
"$ref": "#/components/schemas/InlineSubscription"
},
"example": {
"notificationSubscription": {
"subscriptionType": "AssocStaSubscription",
"callbackReference": "http://meAppClient.example.com/wai/v2/notifications/1",
"_links": {
......@@ -321,7 +268,6 @@
}
}
}
}
},
"400": {
"$ref": "#/components/responses/400"
......@@ -361,24 +307,9 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"notification": {
"oneOf": [
{
"$ref": "#/components/schemas/AssocStaNotification"
},
{
"$ref": "#/components/schemas/StaDataRateNotification"
}
],
"discriminator": {
"propertyName": "notificationType"
}
}
"$ref": "#/components/schemas/InlineNotification"
},
"example": {
"notification": {
"notificationType": "AssocStaNotification",
"timeStamp": {
"seconds": 1977836800,
......@@ -401,8 +332,6 @@
}
}
}
}
}
},
"responses": {
"204": {
......@@ -434,28 +363,9 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"notificationSubscription"
],
"properties": {
"notificationSubscription": {
"oneOf": [
{
"$ref": "#/components/schemas/AssocStaSubscription"
},
{
"$ref": "#/components/schemas/StaDataRateSubscription"
}
],
"discriminator": {
"propertyName": "subscriptionType"
}
}
}
"$ref": "#/components/schemas/InlineSubscription"
},
"example": {
"notificationSubscription": {
"subscriptionType": "AssocStaSubscription",
"callbackReference": "http://meAppClient.example.com/wai/v2/notifications/1",
"_links": {
......@@ -475,7 +385,6 @@
}
}
}
}
},
"400": {
"$ref": "#/components/responses/400"
......@@ -510,24 +419,9 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"notificationSubscription": {
"oneOf": [
{
"$ref": "#/components/schemas/AssocStaSubscription"
},
{
"$ref": "#/components/schemas/StaDataRateSubscription"
}
],
"discriminator": {
"propertyName": "subscriptionType"
}
}
"$ref": "#/components/schemas/InlineSubscription"
},
"example": {
"notificationSubscription": {
"subscriptionType": "AssocStaSubscription",
"callbackReference": "http://meAppClient.example.com/wai/v2/notifications/1",
"_links": {
......@@ -547,8 +441,6 @@
}
}
}
}
}
},
"parameters": [
{
......@@ -561,25 +453,9 @@
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"subscription": {
"oneOf": [
{
"$ref": "#/components/schemas/AssocStaSubscription"
},
{
"$ref": "#/components/schemas/StaDataRateSubscription"
}
],
"discriminator": {
"propertyName": "subscriptionType"
}
}
}
"$ref": "#/components/schemas/InlineSubscription"
},
"example": {
"subscription": {
"_links": {
"self": {
"href": "http://[hostIP]/sbox-xyz123/wai/v2/subscriptions/sub123"
......@@ -592,7 +468,6 @@
}
}
}
}
},
"400": {
"$ref": "#/components/responses/400"
......@@ -663,126 +538,82 @@
"400": {
"description": "Bad Request : used to indicate that incorrect parameters were passed to the request.",
"content": {
"application/json": {
"application/problem+json": {
"schema": {
"type": "object",
"properties": {
"problemDetails": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
}
}
},
"401": {
"description": "Unauthorized : used when the client did not submit credentials.",
"content": {
"application/json": {
"application/problem+json": {
"schema": {
"type": "object",
"properties": {
"problemDetails": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
}
}
},
"403": {
"description": "Forbidden : operation is not allowed given the current status of the resource.",
"content": {
"application/json": {
"application/problem+json": {
"schema": {
"type": "object",
"required": [
"problemDetails"
],
"properties": {
"problemDetails": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
}
}
},
"404": {
"description": "Not Found : used when a client provided a URI that cannot be mapped to a valid resource URI.",
"content": {
"application/json": {
"application/problem+json": {
"schema": {
"type": "object",
"properties": {
"problemDetails": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
}
}
},
"406": {
"description": "Not Acceptable : used to indicate that the server cannot provide the any of the content formats supported by the client.",
"content": {
"application/json": {
"application/problem+json": {
"schema": {
"type": "object",
"properties": {
"problemDetails": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
}
}
},
"412": {
"description": "Precondition failed : used when a condition has failed during conditional requests, e.g. when using ETags to avoid write conflicts when using PUT",
"content": {
"application/json": {
"application/problem+json": {
"schema": {
"type": "object",
"properties": {
"problemDetails": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
}
}
},
"415": {
"description": "Unsupported Media Type : used to indicate that the server or the client does not support the content type of the entity body.",
"content": {
"application/json": {
"application/problem+json": {
"schema": {
"type": "object",
"properties": {
"problemDetails": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
}
}
},
"422": {
"description": "Unprocessable Entity : used to indicate that the server understands the content type of the request entity and that the syntax of the request entity is correct but that the server is unable to process the contained instructions. This error condition can occur if an JSON request body is syntactically correct but semantically incorrect, for example if the target area for the request is considered too large. This error condition can also occur if the capabilities required by the request are not supported.",
"content": {
"application/json": {
"application/problem+json": {
"schema": {
"type": "object",
"properties": {
"problemDetails": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
},
"example": {
"application/problem+json": {
"ProblemDetails": {
"type": "https://meAppServer.example.com/wai/v2/probs/too-many targets",
"title": "Too many targets",
"status": "422",
......@@ -792,23 +623,17 @@
}
}
}
}
},
"429": {
"description": "Too Many Requests : used when a rate limiter has triggered.",
"content": {
"application/json": {
"application/problem+json": {
"schema": {
"type": "object",
"properties": {
"problemDetails": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
}
}
}
},
"parameters": {
"Path.subscrId": {
......@@ -1813,7 +1638,33 @@
"aselCap"
],
"type": "object",
"x-etsi-ref": "6.5.14"
"x-etsi-ref": "6.5.1"
},
"InlineNotification": {
"oneOf": [
{
"$ref": "#/components/schemas/AssocStaNotification"
},
{
"$ref": "#/components/schemas/StaDataRateNotification"
}
],
"discriminator": {
"propertyName": "notificationType"
}
},
"InlineSubscription": {
"oneOf": [
{
"$ref": "#/components/schemas/AssocStaSubscription"
},
{
"$ref": "#/components/schemas/StaDataRateSubscription"
}
],
"discriminator": {
"propertyName": "subscriptionType"
}
},
"LinkType": {
"properties": {
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment