Skip to content

Commit 5ba0fd8

Browse files
committed
Updates based on comments
1 parent 65e7d0b commit 5ba0fd8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

versions/3.0.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -784,12 +784,12 @@ In order to support alternate ways of serializing parameters, a set of `style` v
784784

785785
`style` | [`type`](#dataTypeType) | `in` | Comments
786786
----------- | ------ | -------- | --------
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`.
793793
deepObject | `object` | `query` | Provides a simple way of rendering nested objects using form parameters.
794794

795795

@@ -798,23 +798,23 @@ deepObject | `object` | `query` | Provides a simple way of rendering nested obje
798798
Assuming a parameter named `color` with one of the following values:
799799

800800
```
801-
string -> "blue"
801+
primitive -> "blue"
802802
array -> ["blue","black","brown"]
803803
object -> { "R" : 100, "G" :200, "B" : 150 }
804804
```
805805
The following table shows examples of how those values would be rendered.
806806

807-
[`style`](#dataTypeFormat) | `explode` | `empty` | `string` | `array` | `object`
807+
[`style`](#dataTypeFormat) | `explode` | `empty` | `primitive` | `array` | `object`
808808
----------- | ------ | -------- | -------- | --------|-------
809809
matrix | false | ;color | ;color=blue | ;color=blue,black,brown | ;color=R,100,G,200,B,150
810810
matrix | true | ;color | ;color=blue | ;color=blue;color=black;color=brown | ;R=100;G=200;B=150
811811
label | false | . | .blue | .blue.black.brown | .R.100.G.200.B.150
812812
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
815815
spaceDelimited | false | n/a | n/a | blue%20black%20brown | R%20100%20G%20200%20B%20150
816816
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
818818

819819
This object can be extended with [Specification Extensions](#specificationExtensions).
820820

0 commit comments

Comments
 (0)