mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
[API] Correct product attribute open api context description indentation
This commit is contained in:
parent
6b708f87b4
commit
f7454592e2
1 changed files with 98 additions and 98 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue