Title: oneOf appears to not work correctly (Being treated like allOf) · Issue #269 · aws-cloudformation/cloudformation-cli-java-plugin · GitHub
Open Graph Title: oneOf appears to not work correctly (Being treated like allOf) · Issue #269 · aws-cloudformation/cloudformation-cli-java-plugin
X Title: oneOf appears to not work correctly (Being treated like allOf) · Issue #269 · aws-cloudformation/cloudformation-cli-java-plugin
Description: Version 1.0.5 of the Java plugin Schema: { "typeName": "OBFUSCATED::ApiGateway::RestApi", "description": "An example resource schema demonstrating some basic constructs and validation rules.", "sourceUrl": "https://github.com/aws-cloudfo...
Open Graph Description: Version 1.0.5 of the Java plugin Schema: { "typeName": "OBFUSCATED::ApiGateway::RestApi", "description": "An example resource schema demonstrating some basic constructs and validation rules.", "sou...
X Description: Version 1.0.5 of the Java plugin Schema: { "typeName": "OBFUSCATED::ApiGateway::RestApi", "description": "An example resource schema demonstrating some basic cons...
Opengraph URL: https://github.com/aws-cloudformation/cloudformation-cli-java-plugin/issues/269
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"oneOf appears to not work correctly (Being treated like allOf)","articleBody":"Version 1.0.5 of the Java plugin\r\n\r\nSchema:\r\n\r\n```\r\n{\r\n \"typeName\": \"OBFUSCATED::ApiGateway::RestApi\",\r\n \"description\": \"An example resource schema demonstrating some basic constructs and validation rules.\",\r\n \"sourceUrl\": \"https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git\",\r\n \"properties\": {\r\n \"RestApiId\": {\r\n \"type\": \"string\"\r\n },\r\n \"Name\": {\r\n \"description\": \"Api Name\",\r\n \"type\": \"string\"\r\n },\r\n \"AuthorizerLambdaArn\": {\r\n \"type\": \"string\"\r\n },\r\n \"AuthorizerCredentials\": {\r\n \"type\": \"string\"\r\n },\r\n \"Version\": {\r\n \"type\": \"string\"\r\n },\r\n \"SwaggerS3Location\": {\r\n \"description\": \"Swagger File S3 Location.\",\r\n \"type\": \"object\",\r\n \"properties\": {\r\n \"Bucket\": {\r\n \"type\": \"string\"\r\n },\r\n \"Key\": {\r\n \"type\": \"string\"\r\n },\r\n \"Version\" : {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"required\": [\r\n \"Bucket\",\r\n \"Key\"\r\n ]\r\n\r\n },\r\n \"EndpointType\": {\r\n \"description\": \"Gateway Endpoint Type\",\r\n \"enum\" : [\"REGIONAL\", \"EDGE\", \"PRIVATE\"],\r\n \"type\": \"string\"\r\n },\r\n \"ValidateRequests\" : {\r\n \"type\": \"boolean\",\r\n \"description\" : \"Use Api Gateway request validatoin\"\r\n }\r\n },\r\n \"oneOf\": [\r\n {\r\n \"properties\": {\r\n \"VpcLinkId\": {\r\n \"type\": \"string\"\r\n },\r\n \"BaseURI\": {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"required\": [\"VpcLinkId\", \"BaseURI\"]\r\n },\r\n {\r\n \"properties\": {\r\n \"LambdaArn\" : {\r\n \"type\": \"string\"\r\n }\r\n },\r\n \"required\" : [\"LambdaArn\"]\r\n }\r\n ],\r\n \"additionalProperties\": false,\r\n \"required\": [\r\n \"Name\",\r\n \"SwaggerS3Location\",\r\n \"EndpointType\",\r\n \"AuthorizerLambdaArn\",\r\n \"AuthorizerCredentials\"\r\n ],\r\n \"writeOnlyProperties\": [\r\n \"/properties/VpcLinkId\",\r\n \"/properties/BaseURI\",\r\n \"/properties/LambdaArn\",\r\n \"/properties/SwaggerS3Location\",\r\n \"/properties/ValidateRequests\"\r\n ],\r\n \"readOnlyProperties\": [\r\n \"/properties/RestApiId\",\r\n \"/properties/Version\"\r\n ],\r\n \"primaryIdentifier\": [\r\n \"/properties/RestApiId\"\r\n ],\r\n \"handlers\": {\r\n \"create\": {\r\n \"permissions\": [\r\n \"iam:PassRole\",\r\n \"s3:GetObject\",\r\n \"s3:GetBucketLocation\",\r\n \"apigateway:PATCH\",\r\n \"apigateway:POST\",\r\n \"apigateway:PUT\"\r\n ]\r\n },\r\n \"read\": {\r\n \"permissions\": [\r\n \"apigateway:GET\"\r\n ]\r\n },\r\n \"update\": {\r\n \"permissions\": [\r\n \"iam:PassRole\",\r\n \"s3:GetObject\",\r\n \"s3:GetBucketLocation\",\r\n \"apigateway:PATCH\",\r\n \"apigateway:POST\",\r\n \"apigateway:PUT\"\r\n ]\r\n },\r\n \"delete\": {\r\n \"permissions\": [\r\n \"apigateway:DELETE\"\r\n ]\r\n }\r\n }\r\n}\r\n```\r\n\r\nError when using only VpcLinkId and BaseURI in an update operation:\r\n\r\n`Model validation failed (#: #: only 1 subschema matches out of 2)\\n#: 2 schema violations found (#)`","author":{"url":"https://github.com/samgurtman-zz","@type":"Person","name":"samgurtman-zz"},"datePublished":"2020-05-22T00:09:56Z","url":"https://github.com/aws-cloudformation/cloudformation-cli-java-plugin/issues/269"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1ad0fa46-ea9b-f697-ba05-56162f42ad15 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D45C:2A37BB:45D87F:623EEA:6AFDB8D0 |
| html-safe-nonce | 386f0f6a124697e721a38bceb0a4f51a998f10401e7b29ef12aba4747b44f81a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDVDOjJBMzdCQjo0NUQ4N0Y6NjIzRUVBOjZBRkRCOEQwIiwidmlzaXRvcl9pZCI6IjEzNDc4ODgzNDI3NTgxNzY5NzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 46740d58b2f4e514033b681df4166dd4122b3776303ce2b2acf7cb64e77a56a0 |
| hovercard-subject-tag | issue:622863577 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/aws-cloudformation/cloudformation-cli-java-plugin/269/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1f40317447a09d7d96deaf9a546b8c0bb0057cdf2f82f5e23b7d024f67381322/aws-cloudformation/cloudformation-cli-java-plugin/issues/269 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1f40317447a09d7d96deaf9a546b8c0bb0057cdf2f82f5e23b7d024f67381322/aws-cloudformation/cloudformation-cli-java-plugin/issues/269 |
| og:image:alt | Version 1.0.5 of the Java plugin Schema: { "typeName": "OBFUSCATED::ApiGateway::RestApi", "description": "An example resource schema demonstrating some basic constructs and validation rules.", "sou... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | samgurtman-zz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8309f07eb60a4237a657068c83d0bb57be4c7e02937f5e9933126f4bd596aac4 |
| turbo-cache-control | no-preview |
| go-import | github.com/aws-cloudformation/cloudformation-cli-java-plugin git https://github.com/aws-cloudformation/cloudformation-cli-java-plugin.git |
| octolytics-dimension-user_id | 19900777 |
| octolytics-dimension-user_login | aws-cloudformation |
| octolytics-dimension-repository_id | 152624998 |
| octolytics-dimension-repository_nwo | aws-cloudformation/cloudformation-cli-java-plugin |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 152624998 |
| octolytics-dimension-repository_network_root_nwo | aws-cloudformation/cloudformation-cli-java-plugin |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2f7154d847f1ddc5baa83b109a3e1d924605e2a3 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width