From 6f8d4b9ee19a696c08869bc90038302386d2da83 Mon Sep 17 00:00:00 2001 From: Nils Berge <60594671+nils-work@users.noreply.github.com> Date: Mon, 18 Sep 2023 17:16:39 +1000 Subject: [PATCH 1/2] Body parameter for JWT POST + PUT Addresses: https://github.com/ConsumerDataStandardsAustralia/standards-staging/issues/306 --- slate/source/includes/_dcr_apis.md.erb | 4 +++- .../source/includes/releasenotes/releasenotes.1.27.0.html.md | 3 ++- swagger-gen/widdershins-cdr/common.js | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/slate/source/includes/_dcr_apis.md.erb b/slate/source/includes/_dcr_apis.md.erb index 26348e76..7d8433cb 100644 --- a/slate/source/includes/_dcr_apis.md.erb +++ b/slate/source/includes/_dcr_apis.md.erb @@ -9,6 +9,8 @@ This specification defines the APIs for Data Holders exposing Dynamic Client Reg DCR OpenAPI Specification (YAML) - +```diff +Updated 'Non-normative Examples' to include JWT Body parameter for POST and PUT +``` <%= partial "includes/cds_dcr.md" %> diff --git a/slate/source/includes/releasenotes/releasenotes.1.27.0.html.md b/slate/source/includes/releasenotes/releasenotes.1.27.0.html.md index 1f836238..4d05eafb 100644 --- a/slate/source/includes/releasenotes/releasenotes.1.27.0.html.md +++ b/slate/source/includes/releasenotes/releasenotes.1.27.0.html.md @@ -17,7 +17,7 @@ Release notes for version v1.27.0 of the [CDR Standards](../../index.html). This release addresses the following minor defects raised on [Standards Staging](https://github.com/ConsumerDataStandardsAustralia/standards-staging/issues): -- [Staging Issue xxx - Description](https://github.com/ConsumerDataStandardsAustralia/standards-staging/issues/xxx) +- [Staging Issue 306 - Body parameter for JWT POST + PUT not displayed](https://github.com/ConsumerDataStandardsAustralia/standards-staging/issues/306) This release addresses the following change requests raised on [Standards Maintenance](https://github.com/ConsumerDataStandardsAustralia/standards-maintenance/issues): @@ -54,6 +54,7 @@ This release addresses the following Decision Proposals published on [Standards] |Change|Description|Link| |------|-----------|----| +| Body parameter for JWT POST + PUT | **[Standards Staging #306](https://github.com/ConsumerDataStandardsAustralia/standards-staging/issues/306):** Updated 'Non-normative Examples' to include JWT Body parameter for POST and PUT | [DCR APIs](../../#dcr-apis) | ## Register Standards diff --git a/swagger-gen/widdershins-cdr/common.js b/swagger-gen/widdershins-cdr/common.js index 44256e31..bdf2facb 100644 --- a/swagger-gen/widdershins-cdr/common.js +++ b/swagger-gen/widdershins-cdr/common.js @@ -17,7 +17,7 @@ const statusCodes = require('./statusCodes.json'); const contentTypes = { xml: ['^(application|text|image){1}\\/(.*\\+){0,1}xml(;){0,1}(\\s){0,}(charset=.*){0,}$'], - json: ['^(application|text){1}\\/(.*\\+){0,1}json(;){0,1}(\\s){0,}(charset=.*){0,}$'], + json: ['^(application|text){1}\\/(.*\\+){0,1}json(;){0,1}(\\s){0,}(charset=.*){0,}$', 'application/jwt'], yaml: ['application/x-yaml', 'text/x-yaml'], form: ['multipart/form-data', 'application/x-www-form-urlencoded', 'application/octet-stream'] }; From bcbceeec6b2490caa591daec6aedd8a8d53ae3bf Mon Sep 17 00:00:00 2001 From: Nils Berge <60594671+nils-work@users.noreply.github.com> Date: Mon, 18 Sep 2023 17:24:36 +1000 Subject: [PATCH 2/2] Updated type --- swagger-gen/widdershins-cdr/common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swagger-gen/widdershins-cdr/common.js b/swagger-gen/widdershins-cdr/common.js index bdf2facb..eec07df8 100644 --- a/swagger-gen/widdershins-cdr/common.js +++ b/swagger-gen/widdershins-cdr/common.js @@ -17,9 +17,9 @@ const statusCodes = require('./statusCodes.json'); const contentTypes = { xml: ['^(application|text|image){1}\\/(.*\\+){0,1}xml(;){0,1}(\\s){0,}(charset=.*){0,}$'], - json: ['^(application|text){1}\\/(.*\\+){0,1}json(;){0,1}(\\s){0,}(charset=.*){0,}$', 'application/jwt'], + json: ['^(application|text){1}\\/(.*\\+){0,1}json(;){0,1}(\\s){0,}(charset=.*){0,}$'], yaml: ['application/x-yaml', 'text/x-yaml'], - form: ['multipart/form-data', 'application/x-www-form-urlencoded', 'application/octet-stream'] + form: ['multipart/form-data', 'application/x-www-form-urlencoded', 'application/octet-stream', 'application/jwt'] }; function nop(obj) {