Skip to content

Commit

Permalink
Merge pull request #834 from codingwithmanny/docs/fix-validateOpenRPC…
Browse files Browse the repository at this point in the history
…Document-example

Docs/fix validate open rpc document example
  • Loading branch information
BelfordZ authored May 7, 2024
2 parents 32a98ff + fbe412d commit cbd7295
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/validate-open-rpc-document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ export class OpenRPCDocumentValidationError implements Error {
* @example
* ```typescript
*
* const { types } from "@open-rpc/meta-schema"
* const { validateOpenRPCDocument } from "@open-rpc/schema-utils-js";
* const badOpenRPCDocument = {};
* const errors = validateOpenRPCDocument({});
* if (errors) {
* // handle errors
* import { validateOpenRPCDocument } from "@open-rpc/schema-utils-js";
* const badOpenRPCDocument = {} as any;
*
* const result = validateOpenRPCDocument(badOpenRPCDocument);
* if (result !== true) {
* console.error(result);
* }
* ```
*
Expand Down

0 comments on commit cbd7295

Please sign in to comment.