We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
standards-checklist/app/src/schema.json Lines 124 to 128 in c22a4be "4": { "type": "boolean", "title": "Thorough description of required and optional input parameters", "default": false }, For some items, like this one, where the answer could be "not applicable", I think we'll need "anyOf": [ { "type": "boolean" }, { "type": "string", "enum": ["not applicable"] } ]
standards-checklist/app/src/schema.json
Lines 124 to 128 in c22a4be
For some items, like this one, where the answer could be "not applicable", I think we'll need
"anyOf": [ { "type": "boolean" }, { "type": "string", "enum": ["not applicable"] } ]
― #30 (comment)
Makes sense! Not applicable could also be a boolean
boolean
standards-checklist/app/src/utils.ts Lines 139 to 150 in c22a4be /** * Returns a string representation of the fraction of true values in an object. * * @param obj Object to count * @returns String representation of the fraction of true values */ export function dictFractionTrueString(obj: { [key: string]: boolean }): string { const total = Object.values(obj).length; const trueCount = Object.values(obj).filter(v => v === true).length; return `${trueCount}/${total}`; } Once handling 'n/a's is addressed, we'll need to discount those items from the total.
standards-checklist/app/src/utils.ts
Lines 139 to 150 in c22a4be
The text was updated successfully, but these errors were encountered:
No branches or pull requests
― #30 (comment)
― #30 (comment)
― #30 (comment)
The text was updated successfully, but these errors were encountered: