@@ -784,12 +784,12 @@ In order to support alternate ways of serializing parameters, a set of `style` v
784
784
785
785
` style` | [`type`](#dataTypeType) | `in` | Comments
786
786
----------- | ------ | -------- | --------
787
- matrix | `string `, `array`, `object` | `path` | Path-style parameters defined by [RFC6570](https://tools.ietf.org/html/rfc6570#section-3.2.7)
788
- label | `string `, `array`, `object` | `path` | Label style parameters defined by [RFC6570](https://tools.ietf.org/html/rfc6570#section-3.2.5)
789
- form | `string `, `array`, `object` | `query`| Form style parameters defined by [RFC6570](https://tools.ietf.org/html/rfc6570#section-3.2.8)
790
- commaDelimited | `array` | `query`, `path` | Comma separated array values. This option replaces `collectionFormat` equal to `csv`.
791
- spaceDelimited | `array` | `query`, `path` | Space separated array values. This option replaces `collectionFormat` equal to `ssv`.
792
- pipeDelimited | `array` | `query`, `path` | Pipe separated array values. This option replaces `collectionFormat` equal to `pipes`.
787
+ matrix | `primitive `, `array`, `object` | `path` | Path-style parameters defined by [RFC6570](https://tools.ietf.org/html/rfc6570#section-3.2.7)
788
+ label | `primitive `, `array`, `object` | `path` | Label style parameters defined by [RFC6570](https://tools.ietf.org/html/rfc6570#section-3.2.5)
789
+ form | `primitive `, `array`, `object` | `query`| Form style parameters defined by [RFC6570](https://tools.ietf.org/html/rfc6570#section-3.2.8)
790
+ commaDelimited | `array` | `query`, `path` | Comma seperated array values. This option replaces `collectionFormat` equal to `csv`.
791
+ spaceDelimited | `array` | `query`, `path` | Space seperated array values. This option replaces `collectionFormat` equal to `ssv`.
792
+ pipeDelimited | `array` | `query`, `path` | Pipe seperated array values. This option replaces `collectionFormat` equal to `pipes`.
793
793
deepObject | `object` | `query` | Provides a simple way of rendering nested objects using form parameters.
794
794
795
795
@@ -798,23 +798,23 @@ deepObject | `object` | `query` | Provides a simple way of rendering nested obje
798
798
Assuming a parameter named `color` with one of the following values :
799
799
800
800
` ` `
801
- string -> "blue"
801
+ primitive -> "blue"
802
802
array -> ["blue","black","brown"]
803
803
object -> { "R" : 100, "G" :200, "B" : 150 }
804
804
` ` `
805
805
The following table shows examples of how those values would be rendered.
806
806
807
- [`style`](#dataTypeFormat) | `explode` | `empty` | `string ` | `array` | `object`
807
+ [`style`](#dataTypeFormat) | `explode` | `empty` | `primitive ` | `array` | `object`
808
808
----------- | ------ | -------- | -------- | --------|-------
809
809
matrix | false | ;color | ;color=blue | ;color=blue,black,brown | ;color=R,100,G,200,B,150
810
810
matrix | true | ;color | ;color=blue | ;color=blue;color=black;color=brown | ;R=100;G=200;B=150
811
811
label | false | . | .blue | .blue.black.brown | .R.100.G.200.B.150
812
812
label | true | . | .blue | .blue.black.brown | .R=100.G=200.B=150
813
- form | false | color= | color=blue | color=blue,black,brown | color=x ,100,y ,200
814
- form | true | color= | color=blue | color=blue&color=black&color=brown | x =100&y =200
813
+ form | false | color= | color=blue | color=blue,black,brown | color=R ,100,G ,200,B,150
814
+ form | true | color= | color=blue | color=blue&color=black&color=brown | R =100&G =200&B=150
815
815
spaceDelimited | false | n/a | n/a | blue%20black%20brown | R%20100%20G%20200%20B%20150
816
816
pipeDelimited | false | n/a | n/a | blue\|black\|brown | R\|100\|G\|200|G\|150
817
- deepObject | true | n/a | n/a | n/a | person[name]=Bob&person[lastname]=Brown
817
+ deepObject | true | n/a | n/a | n/a | color[R]=100&color[G]=200&color[B]=150
818
818
819
819
This object can be extended with [Specification Extensions](#specificationExtensions).
820
820
0 commit comments