Skip to content

Update config.schema.json for use with react-jsonschema-form; export …#143

Merged
jafeltra merged 2 commits into
developfrom
update-schema-and-export
Jul 30, 2021
Merged

Update config.schema.json for use with react-jsonschema-form; export …#143
jafeltra merged 2 commits into
developfrom
update-schema-and-export

Conversation

@SenecaAnderson

Copy link
Copy Markdown
Contributor

…JSON object from index.js

Summary

The schema for configuration files was updated to include titles for each field. The schema is now exported from index.js.

New behavior

index.js exports the schema. The schema now includes titles.

Code changes

  • Added titles to fields in schema
  • Added require statement in index.js
  • Added configSchema to module.exports in index.js

Testing guidance

Add a console.log statement to print configSchema. Run extraction. The object will print.

@jafeltra jafeltra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, I just had two really small comments!

Comment thread src/index.js Outdated
@@ -69,6 +69,8 @@ const { getConditionEntriesFromContext, getConditionsFromContext, getEncountersF
const { parsePatientIds } = require('./helpers/appUtils');
const { getConfig, validateConfig } = require('./helpers/configUtils');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incredibly small, but can we remove the blank line between the exports here? They should all stay grouped together.

Comment thread src/helpers/schemas/config.schema.json Outdated
]
},
"tlsRejectUnauthorized": {
"title": "Reject Unauthorized Connections",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I would have this title still include "TLS", so maybe just "TLS Reject Unauthorized Connections".

@SenecaAnderson

Copy link
Copy Markdown
Contributor Author

I have pushed the requested changes.

@jafeltra jafeltra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me!

@jafeltra jafeltra merged commit a92a233 into develop Jul 30, 2021
@jafeltra jafeltra deleted the update-schema-and-export branch July 30, 2021 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants