diff --git a/tools/V4-CSDL-to-OpenAPI.xsl b/tools/V4-CSDL-to-OpenAPI.xsl
index 0c60fcf8..c8688088 100644
--- a/tools/V4-CSDL-to-OpenAPI.xsl
+++ b/tools/V4-CSDL-to-OpenAPI.xsl
@@ -108,6 +108,8 @@
+
+
@@ -177,10 +179,6 @@
-
-
-
-
@@ -1493,6 +1491,9 @@
+
+
-
-
-
@@ -1556,10 +1552,11 @@
-
+
+ @Name=../edm:Key/edm:PropertyRef/@Name and not(@Name=$read-only
+ or @Name=$computed or concat($qualifiedName,'/',@Name) = $computed-ext or concat($aliasQualifiedName,'/',@Name) = $computed-ext
+ or @Name=$computeddefaultvalue or concat($qualifiedName,'/',@Name) = $computeddefaultvalue-ext or concat($aliasQualifiedName,'/',@Name) = $computeddefaultvalue-ext)]">
,
diff --git a/tools/tests/annotations.openapi3.json b/tools/tests/annotations.openapi3.json
index b76926be..01e0723e 100644
--- a/tools/tests/annotations.openapi3.json
+++ b/tools/tests/annotations.openapi3.json
@@ -3134,9 +3134,7 @@
}
},
"required": [
- "ID",
- "PatternExt",
- "AllowedValuesExt"
+ "ID"
],
"title": "SinglePartKey (for create)"
},
diff --git a/tools/tests/annotations.swagger.json b/tools/tests/annotations.swagger.json
index dce97dda..acecabe1 100644
--- a/tools/tests/annotations.swagger.json
+++ b/tools/tests/annotations.swagger.json
@@ -2783,9 +2783,7 @@
}
},
"required": [
- "ID",
- "PatternExt",
- "AllowedValuesExt"
+ "ID"
],
"title": "SinglePartKey (for create)"
},
diff --git a/tools/tests/csdl-16.1.openapi3.json b/tools/tests/csdl-16.1.openapi3.json
index ce5a29d6..9b74f460 100644
--- a/tools/tests/csdl-16.1.openapi3.json
+++ b/tools/tests/csdl-16.1.openapi3.json
@@ -2043,9 +2043,6 @@
]
}
},
- "required": [
- "ID"
- ],
"title": "Product (for create)"
},
"ODataDemo.Product-update": {
diff --git a/tools/tests/csdl-16.1.swagger.json b/tools/tests/csdl-16.1.swagger.json
index 02bef9a7..998ff9f6 100644
--- a/tools/tests/csdl-16.1.swagger.json
+++ b/tools/tests/csdl-16.1.swagger.json
@@ -1796,9 +1796,6 @@
"$ref": "#/definitions/ODataDemo.Supplier-create"
}
},
- "required": [
- "ID"
- ],
"title": "Product (for create)"
},
"ODataDemo.Product-update": {
diff --git a/tools/tests/csdl-16.1.xml b/tools/tests/csdl-16.1.xml
index dd87d986..035e2609 100644
--- a/tools/tests/csdl-16.1.xml
+++ b/tools/tests/csdl-16.1.xml
@@ -18,7 +18,9 @@
-
+
+
+