Skip to content

Commit a571277

Browse files
authored
docs: fixes
1 parent 468f3ed commit a571277

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

README.md

+2-22
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
injectWorkspacePackages: true[![Npm package version](https://badgen.net/npm/v/json-schema-library)](https://github.com/sagold/json-schema-library/actions/workflows/ci.yaml) [![CI](https://github.com/sagold/json-schema-library/actions/workflows/ci.yaml/badge.svg)](https://github.com/sagold/json-schema-library/actions/workflows/ci.yaml) ![Types](https://badgen.net/npm/types/json-schema-library)
1+
[![Npm package version](https://badgen.net/npm/v/json-schema-library)](https://github.com/sagold/json-schema-library/actions/workflows/ci.yaml) [![CI](https://github.com/sagold/json-schema-library/actions/workflows/ci.yaml/badge.svg)](https://github.com/sagold/json-schema-library/actions/workflows/ci.yaml) ![Types](https://badgen.net/npm/types/json-schema-library)
22

33
<h1 align="center">
44
<img src="./docs/json-schema-library-10.png" width="192" alt="json-schema-library">
@@ -734,7 +734,7 @@ expect(reducedNode.schema).to.deep.eq({
734734
});
735735
```
736736

737-
⚠️ Please be aware that certain schema-definitions are lost when resolving or merging sub-schemas.
737+
> ⚠️ Please be aware that certain schema-definitions are lost when resolving or merging sub-schemas.
738738
This mainly refers to validation-properties, but also some ambigiuous schema might get overriden.
739739

740740
### toDataNodes
@@ -905,26 +905,6 @@ console.log(errors); /// [{ code: "type-error", value: "data", pointer: "#", ...
905905

906906
</details>
907907

908-
```ts
909-
const myJsonSchema: JsonSchema = {
910-
type: "object",
911-
additionalProperties: false
912-
};
913-
914-
const { errors } = compileSchema(myJsonSchema).validate({ name: "my-data" });
915-
916-
expect(errors).to.deep.equal([
917-
{
918-
type: "error",
919-
code: "no-additional-properties-error",
920-
message: "Additional property `name` in `#` is not allowed",
921-
data: { property: "name", properties: [], pointer: "#" }
922-
}
923-
]);
924-
```
925-
926-
</details>
927-
928908
## Draft Customization
929909

930910
[**Extending a Draft**](#extending-a-draft) · [**Keyword**](#keyword)

0 commit comments

Comments
 (0)