diff --git a/lib/csdl2markdown.js b/lib/csdl2markdown.js
index e4be132f..a3e08842 100644
--- a/lib/csdl2markdown.js
+++ b/lib/csdl2markdown.js
@@ -611,7 +611,7 @@ module.exports.csdl2markdown = function (filename, csdl, referenced = {}) {
*/
function applicableTermsList(applicableTerms) {
const text = [];
- if (applicableTerms.length > 0) text.push("
Can be annotated with:
");
+ if (applicableTerms.length > 0) text.push("
Applicable Annotation Terms:");
applicableTerms.forEach((term) => {
text.push(`- ${typeLink({ $Type: term })}
`);
});
@@ -641,7 +641,7 @@ module.exports.csdl2markdown = function (filename, csdl, referenced = {}) {
*/
function allowedValuesList(allowedValues) {
const text = [];
- if (allowedValues.length > 0) text.push("Allowed values:");
+ if (allowedValues.length > 0) text.push("Allowed Values:");
allowedValues.forEach((v) => {
v.$$name = v.Value;
let allowedValue = "- " + sourceLink(v) + experimentalOrDeprecated(v);
@@ -670,7 +670,7 @@ module.exports.csdl2markdown = function (filename, csdl, referenced = {}) {
else
return (text || "")
.trim()
- .replace(/\n\n/g, "
")
+ .replace(/\n\n/g, "
")
.replace(/\n/g, " ")
.replace(/[ \t]+/g, " ")
.replace(/\|/g, "\\|");
diff --git a/test/csdl2markdown.test.js b/test/csdl2markdown.test.js
index abac2d13..d1ff2385 100644
--- a/test/csdl2markdown.test.js
+++ b/test/csdl2markdown.test.js
@@ -551,7 +551,7 @@ describe("Edge cases", function () {
"",
"Property|Type|Description",
":-------|:---|:----------",
- "Status|String|The status Allowed values:- Open
- open
- Closed *(Deprecated)*
- Nothing is ever closed
",
+ "Status|String|The statusAllowed Values:- Open
- open
- Closed *(Deprecated)*
- Nothing is ever closed
",
"",
];
const markdown = lib.csdl2markdown(filename, vocabulary);
diff --git a/vocabularies/Org.OData.Capabilities.V1.md b/vocabularies/Org.OData.Capabilities.V1.md
index 8f32e5b6..241abbfe 100644
--- a/vocabularies/Org.OData.Capabilities.V1.md
+++ b/vocabularies/Org.OData.Capabilities.V1.md
@@ -243,7 +243,7 @@ Property|Type|Description
[ReferencesAcrossChangeSetsSupported](Org.OData.Capabilities.V1.xml#L401)|Boolean|Service supports Content-ID referencing across change sets
[EtagReferencesSupported](Org.OData.Capabilities.V1.xml#L404)|Boolean|Service supports referencing Etags from previous requests
[RequestDependencyConditionsSupported](Org.OData.Capabilities.V1.xml#L407)|Boolean|Service supports the `if` member in JSON batch requests
-[SupportedFormats](Org.OData.Capabilities.V1.xml#L410)|\[MediaType\]|Media types of supported formats for $batchAllowed values:- [multipart/mixed](Org.OData.Capabilities.V1.xml#L415)
- [Multipart Batch Format](http://docs.oasis-open.org/odata/odata/v4.01/cs01/part1-protocol/odata-v4.01-cs01-part1-protocol.html#sec_MultipartBatchFormat)
- [application/json](Org.OData.Capabilities.V1.xml#L419)
- [JSON Batch Format](http://docs.oasis-open.org/odata/odata-json-format/v4.01/cs01/odata-json-format-v4.01-cs01.html#sec_BatchRequestsandResponses)
+[SupportedFormats](Org.OData.Capabilities.V1.xml#L410)|\[MediaType\]|Media types of supported formats for $batchAllowed Values:- [multipart/mixed](Org.OData.Capabilities.V1.xml#L415)
- [Multipart Batch Format](http://docs.oasis-open.org/odata/odata/v4.01/cs01/part1-protocol/odata-v4.01-cs01-part1-protocol.html#sec_MultipartBatchFormat)
- [application/json](Org.OData.Capabilities.V1.xml#L419)
- [JSON Batch Format](http://docs.oasis-open.org/odata/odata-json-format/v4.01/cs01/odata-json-format-v4.01-cs01.html#sec_BatchRequestsandResponses)
**Applicable Annotation Terms:**
@@ -304,7 +304,7 @@ Allowed Value|Description
[SingleValue](Org.OData.Capabilities.V1.xml#L476)|Property can be used in a single `eq` clause
[MultiValue](Org.OData.Capabilities.V1.xml#L480)|Property can be used in multiple `eq` and `in` clauses, combined by `or` (which is logically equivalent to a single `in` clause)
[SingleRange](Org.OData.Capabilities.V1.xml#L484)|Property can be compared to a single closed, half-open, or open interval
The filter expression for this property consists of a single interval expression, which is either a single comparison of the property and a literal value with `eq`, `le`, `lt`, `ge`, or `gt`, or a pair of boundaries combined by `and`. The lower boundary is either `ge` or `gt`, the upper boundary either `le` or `lt`.
-[MultiRange](Org.OData.Capabilities.V1.xml#L489)|Property can be compared to a union of one or more closed, half-open, or open intervals
The filter expression for this property consists of one or more interval expressions, combined by `or`. See SingleRange for the definition of an interval expression.
Alternatively the filter expression can consist of one or more `ne` expressions combined by `and`, which is roughly equivalent to the union of the complementing open intervals. Roughly equivalent because `null` is allowed as a right-side operand of an `ne` expression.
+[MultiRange](Org.OData.Capabilities.V1.xml#L489)|Property can be compared to a union of one or more closed, half-open, or open intervals
The filter expression for this property consists of one or more interval expressions, combined by `or`. See SingleRange for the definition of an interval expression.
Alternatively the filter expression can consist of one or more `ne` expressions combined by `and`, which is roughly equivalent to the union of the complementing open intervals. Roughly equivalent because `null` is allowed as a right-side operand of an `ne` expression.
[SearchExpression](Org.OData.Capabilities.V1.xml#L498)|String property can be used as first operand in `startswith`, `endswith`, and `contains` clauses
[MultiRangeOrSearchExpression](Org.OData.Capabilities.V1.xml#L502)|Property can be compared to a union of zero or more closed, half-open, or open intervals plus zero or more simple string patterns
The filter expression for this property consists of one or more interval expressions or string comparison functions combined by `or`. See SingleRange for the definition of an interval expression. See SearchExpression for the allowed string comparison functions.
@@ -452,7 +452,7 @@ Property|Type|Description
Property|Type|Description
:-------|:---|:----------
[Scope](Org.OData.Capabilities.V1.xml#L675)|String|Name of the scope.
-[RestrictedProperties](Org.OData.Capabilities.V1.xml#L678)|String?|Comma-separated string value of all properties that will be included or excluded when using the scope.
Possible string value identifiers when specifying properties are `*`, _PropertyName_, `-`_PropertyName_.
`*` denotes all properties are accessible.
`-`_PropertyName_ excludes that specific property.
_PropertyName_ explicitly provides access to the specific property.
The absence of `RestrictedProperties` denotes all properties are accessible using that scope.
+[RestrictedProperties](Org.OData.Capabilities.V1.xml#L678)|String?|Comma-separated string value of all properties that will be included or excluded when using the scope.
Possible string value identifiers when specifying properties are `*`, _PropertyName_, `-`_PropertyName_.
`*` denotes all properties are accessible.
`-`_PropertyName_ excludes that specific property.
_PropertyName_ explicitly provides access to the specific property.
The absence of `RestrictedProperties` denotes all properties are accessible using that scope.
## [DeepInsertSupportType](Org.OData.Capabilities.V1.xml#L698)
diff --git a/vocabularies/Org.OData.Repeatability.V1.md b/vocabularies/Org.OData.Repeatability.V1.md
index 4d58a8e6..9fe6ae9a 100644
--- a/vocabularies/Org.OData.Repeatability.V1.md
+++ b/vocabularies/Org.OData.Repeatability.V1.md
@@ -9,5 +9,5 @@ Terms describing repeatable requests
Term|Type|Description
:---|:---|:----------
[Supported](Org.OData.Repeatability.V1.xml#L69)|[Tag](Org.OData.Core.V1.md#Tag)|Repeatable requests are supported for the annotated service, entity set, or action
Annotations on entity set or action import level override an annotation on entity container level, and an annotation on action level override an annotation on action import level.
-[DeleteWithClientIDSupported](Org.OData.Repeatability.V1.xml#L74)|[Tag](Org.OData.Core.V1.md#Tag)|Deletion of remembered requests by client ID is supported
Clients that specify a `RepeatabilityClientID` header can delete all remembered requests for that client ID by sending a
`DELETE $RepeatableRequestsWithClientID/{Repeatability-Client-ID}`
request to the service root.
-[DeleteWithRequestIDSupported](Org.OData.Repeatability.V1.xml#L85)|[Tag](Org.OData.Core.V1.md#Tag)|Deletion of remembered requests by request ID is supported
Clients can delete a single remembered request by sending a
`DELETE $RepeatableRequestWithRequestID/{Repeatability-Request-ID}`
request to the service root.
+[DeleteWithClientIDSupported](Org.OData.Repeatability.V1.xml#L74)|[Tag](Org.OData.Core.V1.md#Tag)|Deletion of remembered requests by client ID is supported
Clients that specify a `RepeatabilityClientID` header can delete all remembered requests for that client ID by sending a
`DELETE $RepeatableRequestsWithClientID/{Repeatability-Client-ID}`
request to the service root.
+[DeleteWithRequestIDSupported](Org.OData.Repeatability.V1.xml#L85)|[Tag](Org.OData.Core.V1.md#Tag)|Deletion of remembered requests by request ID is supported
Clients can delete a single remembered request by sending a
`DELETE $RepeatableRequestWithRequestID/{Repeatability-Request-ID}`
request to the service root.
diff --git a/vocabularies/Org.OData.Validation.V1.md b/vocabularies/Org.OData.Validation.V1.md
index 7b330ff2..ce94dca1 100644
--- a/vocabularies/Org.OData.Validation.V1.md
+++ b/vocabularies/Org.OData.Validation.V1.md
@@ -9,15 +9,15 @@ Terms describing validation rules
Term|Type|Description
:---|:---|:----------
[Pattern](Org.OData.Validation.V1.xml#L67)|String|The pattern that a string property, parameter, or term must match. This SHOULD be a valid regular expression, according to the ECMA 262 regular expression dialect.
-[Minimum](Org.OData.Validation.V1.xml#L72)|PrimitiveType|Minimum value that a property, parameter, or term can have.
Can be annotated with:
-[Maximum](Org.OData.Validation.V1.xml#L81)|PrimitiveType|Maximum value that a property, parameter, or term can have.
Can be annotated with:
+[Minimum](Org.OData.Validation.V1.xml#L72)|PrimitiveType|Minimum value that a property, parameter, or term can have.
Applicable Annotation Terms:
+[Maximum](Org.OData.Validation.V1.xml#L81)|PrimitiveType|Maximum value that a property, parameter, or term can have.
Applicable Annotation Terms:
[Exclusive](Org.OData.Validation.V1.xml#L90)|[Tag](Org.OData.Core.V1.md#Tag)|Tags a Minimum or Maximum as exclusive, i.e. an open interval boundary.
[AllowedValues](Org.OData.Validation.V1.xml#L94)|\[[AllowedValue](#AllowedValue)\]|A collection of valid values for the annotated property, parameter, or type definition
[MultipleOf](Org.OData.Validation.V1.xml#L108)|Decimal|The value of the annotated property, parameter, or term must be an integer multiple of this positive value. For temporal types, the value is measured in seconds.
[Constraint](Org.OData.Validation.V1.xml#L112)|[ConstraintType](#ConstraintType)|Condition that the annotation target has to fulfill
[ItemsOf](Org.OData.Validation.V1.xml#L125)|\[[ItemsOfType](#ItemsOfType)\]|A list of constraints describing that entities related via one navigation property MUST also be related via another, collection-valued navigation property. The same `path` value MUST NOT occur more than once.
Example: entity type `Customer` has navigation properties `AllOrders`, `OpenOrders`, and `ClosedOrders`. The term allows to express that items of `OpenOrders` and `ClosedOrders` are also items of the `AllOrders` navigation property, even though they are defined in an `Orders` entity set.
[OpenPropertyTypeConstraint](Org.OData.Validation.V1.xml#L143)|\[[SingleOrCollectionType](#SingleOrCollectionType)\]|Dynamic properties added to the annotated open structured type are restricted to the listed types.
-[DerivedTypeConstraint](Org.OData.Validation.V1.xml#L147)|\[[SingleOrCollectionType](#SingleOrCollectionType)\]|Values are restricted to types that are both identical to or derived from the declared type and a type listed in this collection.
This allows restricting values to certain sub-trees of an inheritance hierarchy, including hierarchies starting at the [Built-In Abstract Types](https://docs.oasis-open.org/odata/odata-csdl-json/v4.01/odata-csdl-json-v4.01.html#sec_BuiltInAbstractTypes). Types listed in this collection are ignored if they are not derived from the declared type of the annotated model element or would not be allowed as declared type of the annotated model element.
When applied to a collection-valued element, this annotation specifies the types allowed for members of the collection without mentioning the `Collection()` wrapper. The SingleOrCollectionType may only include the `Collection()` wrapper if the annotation is applied to an element with declared type `Edm.Untyped`.
+[DerivedTypeConstraint](Org.OData.Validation.V1.xml#L147)|\[[SingleOrCollectionType](#SingleOrCollectionType)\]|Values are restricted to types that are both identical to or derived from the declared type and a type listed in this collection.
This allows restricting values to certain sub-trees of an inheritance hierarchy, including hierarchies starting at the [Built-In Abstract Types](https://docs.oasis-open.org/odata/odata-csdl-json/v4.01/odata-csdl-json-v4.01.html#sec_BuiltInAbstractTypes). Types listed in this collection are ignored if they are not derived from the declared type of the annotated model element or would not be allowed as declared type of the annotated model element.
When applied to a collection-valued element, this annotation specifies the types allowed for members of the collection without mentioning the `Collection()` wrapper. The SingleOrCollectionType may only include the `Collection()` wrapper if the annotation is applied to an element with declared type `Edm.Untyped`.
[AllowedTerms](Org.OData.Validation.V1.xml#L166)|\[[QualifiedTermName](Org.OData.Core.V1.md#QualifiedTermName)\]|Annotate a term of type Edm.AnnotationPath, or a property of type Edm.AnnotationPath that is used within a structured term, to restrict the terms that can be targeted by the path.
The annotation path expression is intended to end in a path segment with one of the listed terms. For forward compatibility, clients should be prepared for the annotation to reference terms besides those listed.
[ApplicableTerms](Org.OData.Validation.V1.xml#L172)|\[[QualifiedTermName](Org.OData.Core.V1.md#QualifiedTermName)\]|Names of specific terms that are applicable and may be applied in the current context. This annotation does not restrict the use of other terms.
[MaxItems](Org.OData.Validation.V1.xml#L176)|Int64|The annotated collection must have at most the specified number of items.