Skip to content

Commit

Permalink
chore(release): 1.14.1 [skip ci]
Browse files Browse the repository at this point in the history
## [1.14.1](1.14.0...1.14.1) (2021-03-15)

### Bug Fixes

* allow methods array to have refs ([709a380](709a380))
* **github action:** eslint workflow node version ([a51cc70](a51cc70))
  • Loading branch information
openrpc-bastion authored and semantic-release-bot committed Mar 15, 2021
1 parent 50dee64 commit 8b2b9e0
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 6 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## [1.14.1](https://github.com/open-rpc/meta-schema/compare/1.14.0...1.14.1) (2021-03-15)


### Bug Fixes

* allow methods array to have refs ([709a380](https://github.com/open-rpc/meta-schema/commit/709a3808f5b712f9fc07dd8a54a66f213924d41e))
* **github action:** eslint workflow node version ([a51cc70](https://github.com/open-rpc/meta-schema/commit/a51cc70cbef90342b1e1130164bd54b50774023f))

# [1.14.0](https://github.com/open-rpc/meta-schema/compare/1.13.20...1.14.0) (2020-11-10)


Expand Down
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,8 @@ export interface MethodObject {
externalDocs?: ExternalDocumentationObject;
[regex: string]: SpecificationExtension | any;
}
export type Methods = MethodObject[];
export type MethodReference = MethodObject | ReferenceObject;
export type Methods = MethodReference[];
export interface SchemaComponents { [key: string]: any; }
export interface LinkComponents { [key: string]: any; }
export interface ErrorComponents { [key: string]: any; }
Expand Down
2 changes: 1 addition & 1 deletion index.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion index.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,9 @@ class MethodObject(TypedDict):
deprecated: Optional[MethodObjectDeprecated]
externalDocs: Optional[ExternalDocumentationObject]

Methods = NewType("Methods", List[MethodObject])
MethodReference = NewType("MethodReference", Union[MethodObject, ReferenceObject])

Methods = NewType("Methods", List[MethodReference])

SchemaComponents = NewType("SchemaComponents", Mapping[Any, Any])

Expand Down
7 changes: 6 additions & 1 deletion index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,12 @@ pub struct MethodObject {
pub(crate) deprecated: Option<MethodObjectDeprecated>,
pub(crate) externalDocs: Option<ExternalDocumentationObject>,
}
pub type Methods = Vec<MethodObject>;
#[derive(Serialize, Deserialize)]
pub enum MethodReference {
MethodObject,
ReferenceObject
}
pub type Methods = Vec<MethodReference>;
pub type SchemaComponents = HashMap<String, Option<serde_json::Value>>;
pub type LinkComponents = HashMap<String, Option<serde_json::Value>>;
pub type ErrorComponents = HashMap<String, Option<serde_json::Value>>;
Expand Down
34 changes: 32 additions & 2 deletions openrpc_document.go

Large diffs are not rendered by default.

0 comments on commit 8b2b9e0

Please sign in to comment.