[API] Correct product attribute open api context description indentation

This commit is contained in:
Rafikooo 2024-08-02 11:19:51 +02:00
parent 6b708f87b4
commit f7454592e2
No known key found for this signature in database
GPG key ID: 4A26D8327BC2442B

View file

@ -74,62 +74,62 @@
<openapiContext>
<values>
<value name="description">
Example configuration for a `text` type attribute:
Example configuration for a `text` type attribute:
```
{
"type": "text",
"configuration": {
"min": 5,
"max": 255
}
}
```
```
{
"type": "text",
"configuration": {
"min": 5,
"max": 255
}
}
```
Example configuration for a `datetime` type attribute:
Example configuration for a `datetime` type attribute:
```
{
"type": "datetime",
"configuration": {
"format": "Y-m-d H:i:s"
}
}
```
```
{
"type": "datetime",
"configuration": {
"format": "Y-m-d H:i:s"
}
}
```
Example configuration for a `date` type attribute:
Example configuration for a `date` type attribute:
```
{
"type": "date",
"configuration": {
"format": "Y-m-d"
}
}
```
```
{
"type": "date",
"configuration": {
"format": "Y-m-d"
}
}
```
Example configuration for a `select` type attribute:
Example configuration for a `select` type attribute:
```
{
"type": "select",
"configuration": {
"choices": {
"0afb212e-cd08-11ec-871e-0242ac120005": {
"en_US": "Plastic",
"fr_FR": "Plastique"
},
"3bfb211f-cd08-11ec-871e-0242ac120005": {
"en_US": "Cotton",
"fr_FR": "Coton"
}
},
"multiple": true,
"min": 1,
"max": 3
}
}
```
```
{
"type": "select",
"configuration": {
"choices": {
"0afb212e-cd08-11ec-871e-0242ac120005": {
"en_US": "Plastic",
"fr_FR": "Plastique"
},
"3bfb211f-cd08-11ec-871e-0242ac120005": {
"en_US": "Cotton",
"fr_FR": "Coton"
}
},
"multiple": true,
"min": 1,
"max": 3
}
}
```
</value>
</values>
</openapiContext>
@ -193,62 +193,62 @@
<openapiContext>
<values>
<value name="description">
Example configuration for a `text` type attribute:
Example configuration for a `text` type attribute:
```
{
"type": "text",
"configuration": {
"min": 5,
"max": 255
}
}
```
```
{
"type": "text",
"configuration": {
"min": 5,
"max": 255
}
}
```
Example configuration for a `datetime` type attribute:
Example configuration for a `datetime` type attribute:
```
{
"type": "datetime",
"configuration": {
"format": "Y-m-d H:i:s"
}
}
```
```
{
"type": "datetime",
"configuration": {
"format": "Y-m-d H:i:s"
}
}
```
Example configuration for a `date` type attribute:
Example configuration for a `date` type attribute:
```
{
"type": "date",
"configuration": {
"format": "Y-m-d"
}
}
```
```
{
"type": "date",
"configuration": {
"format": "Y-m-d"
}
}
```
Example configuration for a `select` type attribute:
Example configuration for a `select` type attribute:
```
{
"type": "select",
"configuration": {
"choices": {
"0afb212e-cd08-11ec-871e-0242ac120005": {
"en_US": "Plastic",
"fr_FR": "Plastique"
},
"3bfb211f-cd08-11ec-871e-0242ac120005": {
"en_US": "Cotton",
"fr_FR": "Coton"
}
},
"multiple": true,
"min": 1,
"max": 3
}
}
```
```
{
"type": "select",
"configuration": {
"choices": {
"0afb212e-cd08-11ec-871e-0242ac120005": {
"en_US": "Plastic",
"fr_FR": "Plastique"
},
"3bfb211f-cd08-11ec-871e-0242ac120005": {
"en_US": "Cotton",
"fr_FR": "Coton"
}
},
"multiple": true,
"min": 1,
"max": 3
}
}
```
</value>
</values>
</openapiContext>