Skip to content

Commit

Permalink
Revert unintended line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfhandl committed Apr 12, 2024
1 parent ab134d0 commit f232900
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 33 deletions.
38 changes: 19 additions & 19 deletions vocabularies/Org.OData.JSON.V1.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ receiving

Term|Type|Description
:---|:---|:----------
[Schema](./Org.OData.JSON.V1.xml#L135:~:text=<Term%20Name="-,Schema,-")|[JSON](#JSON)|<a name="Schema"></a>The JSON Schema for JSON values of the annotated media entity type, property, parameter, return type, term, or type definition<br>The schema can be a reference, i.e. `{"$ref":"url/of/schemafile#/path/to/schema/within/schemafile"}`
[Schema](./Org.OData.JSON.V1.xml#L131:~:text=<Term%20Name="-,Schema,-")|[JSON](#JSON)|<a name="Schema"></a>The JSON Schema for JSON values of the annotated media entity type, property, parameter, return type, term, or type definition<br>The schema can be a reference, i.e. `{"$ref":"url/of/schemafile#/path/to/schema/within/schemafile"}`


## Functions

<a name="query"></a>
### [query](./Org.OData.JSON.V1.xml#L144:~:text=<Function%20Name="-,query,-")
### [query](./Org.OData.JSON.V1.xml#L139:~:text=<Function%20Name="-,query,-")

Query a stream value of media type `application/json`, returning a stream value of media type `application/json`

Expand All @@ -89,13 +89,13 @@ Extracts a JSON value, such as an array, object, or a JSON scalar value (string,

Parameter|Type|Description
:--------|:---|:----------
**[input](./Org.OData.JSON.V1.xml#L155:~:text=<Function%20Name="-,query,-")**|[JSON?](#JSON)|**Binding parameter:** JSON input
[path](./Org.OData.JSON.V1.xml#L158:~:text=<Function%20Name="-,query,-")|[Path?](#Path)|JSONPath expression to be applied to value of `expr`
[&rarr;](./Org.OData.JSON.V1.xml#L162:~:text=<Function%20Name="-,query,-")|[JSON?](#JSON)|JSON value resulting from applying `path` to `input`
**[input](./Org.OData.JSON.V1.xml#L149:~:text=<Function%20Name="-,query,-")**|[JSON?](#JSON)|**Binding parameter:** JSON input
[path](./Org.OData.JSON.V1.xml#L152:~:text=<Function%20Name="-,query,-")|[Path?](#Path)|JSONPath expression to be applied to value of `expr`
[&rarr;](./Org.OData.JSON.V1.xml#L156:~:text=<Function%20Name="-,query,-")|[JSON?](#JSON)|JSON value resulting from applying `path` to `input`


<a name="value"></a>
### [value](./Org.OData.JSON.V1.xml#L168:~:text=<Function%20Name="-,value,-")
### [value](./Org.OData.JSON.V1.xml#L162:~:text=<Function%20Name="-,value,-")

Query a stream value of media type `application/json`, returning a string

Expand All @@ -107,13 +107,13 @@ Extracts a single OData primitive value from the `input` JSON value and casts it

Parameter|Type|Description
:--------|:---|:----------
**[input](./Org.OData.JSON.V1.xml#L178:~:text=<Function%20Name="-,value,-")**|[JSON?](#JSON)|**Binding parameter:** JSON input
[path](./Org.OData.JSON.V1.xml#L181:~:text=<Function%20Name="-,value,-")|[Path?](#Path)|JSONPath expression to be applied to value of `expr`
[&rarr;](./Org.OData.JSON.V1.xml#L185:~:text=<Function%20Name="-,value,-")|String?|String value resulting from applying `path` to `input`
**[input](./Org.OData.JSON.V1.xml#L171:~:text=<Function%20Name="-,value,-")**|[JSON?](#JSON)|**Binding parameter:** JSON input
[path](./Org.OData.JSON.V1.xml#L174:~:text=<Function%20Name="-,value,-")|[Path?](#Path)|JSONPath expression to be applied to value of `expr`
[&rarr;](./Org.OData.JSON.V1.xml#L178:~:text=<Function%20Name="-,value,-")|String?|String value resulting from applying `path` to `input`


<a name="valueNumber"></a>
### [valueNumber](./Org.OData.JSON.V1.xml#L190:~:text=<Function%20Name="-,valueNumber,-")
### [valueNumber](./Org.OData.JSON.V1.xml#L183:~:text=<Function%20Name="-,valueNumber,-")

Query a stream value of media type `application/json`, returning a number

Expand All @@ -122,13 +122,13 @@ Like [`value`](#value), but casts the extracted value to an `Edm.Decimal` with u

Parameter|Type|Description
:--------|:---|:----------
**[input](./Org.OData.JSON.V1.xml#L196:~:text=<Function%20Name="-,valueNumber,-")**|[JSON?](#JSON)|**Binding parameter:** JSON input
[path](./Org.OData.JSON.V1.xml#L199:~:text=<Function%20Name="-,valueNumber,-")|[Path?](#Path)|JSONPath expression to be applied to value of `expr`
[&rarr;](./Org.OData.JSON.V1.xml#L202:~:text=<Function%20Name="-,valueNumber,-")|Decimal?|Numeric value resulting from applying `path` to `input`
**[input](./Org.OData.JSON.V1.xml#L189:~:text=<Function%20Name="-,valueNumber,-")**|[JSON?](#JSON)|**Binding parameter:** JSON input
[path](./Org.OData.JSON.V1.xml#L192:~:text=<Function%20Name="-,valueNumber,-")|[Path?](#Path)|JSONPath expression to be applied to value of `expr`
[&rarr;](./Org.OData.JSON.V1.xml#L195:~:text=<Function%20Name="-,valueNumber,-")|Decimal?|Numeric value resulting from applying `path` to `input`


<a name="valueBoolean"></a>
### [valueBoolean](./Org.OData.JSON.V1.xml#L206:~:text=<Function%20Name="-,valueBoolean,-")
### [valueBoolean](./Org.OData.JSON.V1.xml#L199:~:text=<Function%20Name="-,valueBoolean,-")

Query a stream value of media type `application/json`, returning a Boolean

Expand All @@ -137,19 +137,19 @@ Like [`value`](#value), but casts the extracted value to an `Edm.Boolean`.

Parameter|Type|Description
:--------|:---|:----------
**[input](./Org.OData.JSON.V1.xml#L212:~:text=<Function%20Name="-,valueBoolean,-")**|[JSON?](#JSON)|**Binding parameter:** JSON input
[path](./Org.OData.JSON.V1.xml#L215:~:text=<Function%20Name="-,valueBoolean,-")|[Path?](#Path)|JSONPath expression to be applied to value of `expr`
[&rarr;](./Org.OData.JSON.V1.xml#L218:~:text=<Function%20Name="-,valueBoolean,-")|Boolean?|Boolean value resulting from applying `path` to `input`
**[input](./Org.OData.JSON.V1.xml#L205:~:text=<Function%20Name="-,valueBoolean,-")**|[JSON?](#JSON)|**Binding parameter:** JSON input
[path](./Org.OData.JSON.V1.xml#L208:~:text=<Function%20Name="-,valueBoolean,-")|[Path?](#Path)|JSONPath expression to be applied to value of `expr`
[&rarr;](./Org.OData.JSON.V1.xml#L211:~:text=<Function%20Name="-,valueBoolean,-")|Boolean?|Boolean value resulting from applying `path` to `input`


<a name="JSON"></a>
## [JSON](./Org.OData.JSON.V1.xml#L223:~:text=<TypeDefinition%20Name="-,JSON,-")
## [JSON](./Org.OData.JSON.V1.xml#L216:~:text=<TypeDefinition%20Name="-,JSON,-")
**Type:** Stream

Textual data of media type `application/json`

<a name="Path"></a>
## [Path](./Org.OData.JSON.V1.xml#L234:~:text=<TypeDefinition%20Name="-,Path,-")
## [Path](./Org.OData.JSON.V1.xml#L227:~:text=<TypeDefinition%20Name="-,Path,-")
**Type:** String

[JSONPath](https://datatracker.ietf.org/doc/html/rfc9535) expression
Expand Down
21 changes: 7 additions & 14 deletions vocabularies/Org.OData.JSON.V1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -115,35 +115,29 @@ receiving
<Collection>
<Record>
<PropertyValue Property="rel" String="latest-version" />
<PropertyValue Property="href"
String="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.JSON.V1.xml" />
<PropertyValue Property="href" String="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.JSON.V1.xml" />
</Record>
<Record>
<PropertyValue Property="rel" String="alternate" />
<PropertyValue Property="href"
String="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.JSON.V1.json" />
<PropertyValue Property="href" String="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.JSON.V1.json" />
</Record>
<Record>
<PropertyValue Property="rel" String="describedby" />
<PropertyValue Property="href"
String="https://github.com/oasis-tcs/odata-vocabularies/blob/main/vocabularies/Org.OData.JSON.V1.md" />
<PropertyValue Property="href" String="https://github.com/oasis-tcs/odata-vocabularies/blob/main/vocabularies/Org.OData.JSON.V1.md" />
</Record>
</Collection>
</Annotation>

<Term Name="Schema" Type="JSON.JSON" Nullable="false"
AppliesTo="EntityType Parameter Property ReturnType Term TypeDefinition">
<Term Name="Schema" Type="JSON.JSON" Nullable="false" AppliesTo="EntityType Parameter Property ReturnType Term TypeDefinition">
<Annotation Term="Core.RequiresType" String="Edm.Stream" />
<Annotation Term="Core.Description"
String="The JSON Schema for JSON values of the annotated media entity type, property, parameter, return type, term, or type definition" />
<Annotation Term="Core.Description" String="The JSON Schema for JSON values of the annotated media entity type, property, parameter, return type, term, or type definition" />
<Annotation Term="Core.LongDescription">
<String>The schema can be a reference, i.e. `{"$ref":"url/of/schemafile#/path/to/schema/within/schemafile"}`</String>
</Annotation>
</Term>

<Function Name="query" IsBound="true" IsComposable="true">
<Annotation Term="Core.Description"
String="Query a stream value of media type `application/json`, returning a stream value of media type `application/json`" />
<Annotation Term="Core.Description" String="Query a stream value of media type `application/json`, returning a stream value of media type `application/json`" />
<Annotation Term="Core.LongDescription">
<String>Extracts a JSON value, such as an array, object, or a JSON scalar value (string, number, boolean, or `null`) from the `input` JSON value:
- If `path` only consists of the root identifier followed by name and index selectors, it returns the identified single node within `input`, or `null` if no node is identified.
Expand All @@ -166,8 +160,7 @@ receiving
</Function>

<Function Name="value" IsBound="true">
<Annotation Term="Core.Description"
String="Query a stream value of media type `application/json`, returning a string" />
<Annotation Term="Core.Description" String="Query a stream value of media type `application/json`, returning a string" />
<Annotation Term="Core.LongDescription">
<String>Extracts a single OData primitive value from the `input` JSON value and casts it to a string:
- If `path` only consists of the root identifier followed by name and index selectors and identifies a single scalar JSON value (string, number, boolean, or `null`) within `input`, it returns the identified single value, cast to a string.
Expand Down

0 comments on commit f232900

Please sign in to comment.