{"id":23814206,"url":"https://github.com/stuartpb/jbans","last_synced_at":"2026-04-14T18:34:23.324Z","repository":{"id":57279778,"uuid":"81821782","full_name":"stuartpb/jbans","owner":"stuartpb","description":"Node module to create a \"ban additional properties\" clone of a given JSON Schema.","archived":false,"fork":false,"pushed_at":"2017-04-22T21:27:47.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-04T23:47:41.209Z","etag":null,"topics":["javascript","json-schema","npm-module"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stuartpb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-13T12:15:25.000Z","updated_at":"2019-07-26T10:30:16.000Z","dependencies_parsed_at":"2022-09-15T09:40:26.114Z","dependency_job_id":null,"html_url":"https://github.com/stuartpb/jbans","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stuartpb/jbans","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuartpb%2Fjbans","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuartpb%2Fjbans/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuartpb%2Fjbans/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuartpb%2Fjbans/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stuartpb","download_url":"https://codeload.github.com/stuartpb/jbans/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuartpb%2Fjbans/sbom","scorecard":{"id":856075,"data":{"date":"2025-08-11","repo":{"name":"github.com/stuartpb/jbans","commit":"6759c236ecf18de45696fab65552081defc07633"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/3 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T23:55:17.478Z","repository_id":57279778,"created_at":"2025-08-23T23:55:17.478Z","updated_at":"2025-08-23T23:55:17.478Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30448551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T21:31:01.033Z","status":"ssl_error","status_checked_at":"2026-03-12T21:30:43.161Z","response_time":114,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","json-schema","npm-module"],"created_at":"2025-01-02T03:46:50.176Z","updated_at":"2026-04-14T18:34:23.308Z","avatar_url":"https://github.com/stuartpb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jbans\n\nNode module to create a \"ban additional properties\" clone of a given JSON Schema.\n\n`var banned = jbans(schema);`\n\n## Options for working with merge-dependent schema\n\n*NOTE: This is written badly, like trying to explain how to drive a car by describing the blueprints. I haven't even tested this functionality, so you should probably just ignore this for now, and just don't try to use this with any schema that uses `anyOf`, `allOf`, or `oneOf` with objects if you haven't specified `additionalProperties` everywhere around it.*\n\nBy default, this module assumes your schema is completely designed so that *any* properties that an object may contain are present on *all* `allOf`, `anyOf`, and/or `oneOf` subschemas *and* their parent schema(s) (or they have `additionalProperties` explicitly specified appropriately).\n\nIf your schema does *not* meet this criteria, you can set options under `defer` or `skip` option objects to *implicitly* allow `additionalProperties` as appropriate.\n\nHowever, each of these require *at least one point* to have the properties explicitly defined:\n\nSetting `defer` for a class instead of `skip` will be acceptable so long as *all the subschemas* each have all the necessary properties defined.\n\nSetting `skip` for a class instead of `defer` will be acceptable so long as the *outer object* has all the properties of the subschemas defined.\n\nSetting neither for a class requires *both* to have all the properties defined, which may be fine for your use case.\n\nSetting *both* will allow additional properties on objects with that type of junction (unless it is also constrained by *another* junction level of test that *does not* have `skip` defined).\n\n### `defer`\n\nObject with boolean properties for `allOf`, `anyOf`, and `oneOf`.\n\nIf arrays for any of these properties set to `true` are present on an object, `additionalProperties` will *not* be set for that object, under the expectation that additional properties will instead be rejected within the *subschemas*.\n\nBy default, all three are `false`. You may wish to set `anyOf` or `oneOf` to `true`, to allow an object to defer to the `additionalProperties` restictions of the matching subschema(s): if the subschemas aren't a superset of their containing schema (ie. the object with the `anyOf` or `oneOf` defines properties that aren't in the subschemas), you will need to have any sub-schemas not accepting `additionalProperties` mirror these super-properties.\n\n### `skip`\n\nObject with boolean properties for `allOf`, `anyOf`, and `oneOf`.\n\nAny arrays of types set to `true` here will not have `additionalProperties` set on their subschemas (though note that subschemas *below* the array's immediate descendants will still be processed).\n\nBy default, all three are `false`. You may wish to set `allOf` to `true`, if the subschemas of your `allOf` do not have properties of the other conditions, as this will allow the subschemas that do not specify shared properties to match.\n\nSetting `skip.anyOf` or `skip.oneOf` will allow subschemas to be matched when stray properties of other subschemas are present, and as such will not produce a strong banned-additional-properties behavior.\n\nAlso note that this skipping *will not apply* for subschemas included by reference. If you have a referenced subschema that will only be used in the context of `allOf` sets where properties are enumerated on the outside object, you should explicitly set `additionalProperties` to `true` on it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuartpb%2Fjbans","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuartpb%2Fjbans","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuartpb%2Fjbans/lists"}