Skip to content

Commit

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

### Bug Fixes

* use Go-conventional editor config for .go files ([9fce81f](9fce81f))
* use standard naming convention of methodOrReference ([efd985a](efd985a)), closes [#385](#385)
  • Loading branch information
openrpc-bastion authored and semantic-release-bot committed Apr 16, 2021
1 parent 7de37fa commit 6133e39
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 12 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,11 @@
## [1.14.2](https://github.com/open-rpc/meta-schema/compare/1.14.1...1.14.2) (2021-04-16)


### Bug Fixes

* use Go-conventional editor config for .go files ([9fce81f](https://github.com/open-rpc/meta-schema/commit/9fce81f3f424ae379af17f387dfba699003edafd))
* use standard naming convention of methodOrReference ([efd985a](https://github.com/open-rpc/meta-schema/commit/efd985a04982b71a7adfab10406afe8b911989d5)), closes [#385](https://github.com/open-rpc/meta-schema/issues/385)

## [1.14.1](https://github.com/open-rpc/meta-schema/compare/1.14.0...1.14.1) (2021-03-15)


Expand Down
4 changes: 2 additions & 2 deletions index.d.ts
Expand Up @@ -341,8 +341,8 @@ export interface MethodObject {
externalDocs?: ExternalDocumentationObject;
[regex: string]: SpecificationExtension | any;
}
export type MethodReference = MethodObject | ReferenceObject;
export type Methods = MethodReference[];
export type MethodOrReference = MethodObject | ReferenceObject;
export type Methods = MethodOrReference[];
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: 2 additions & 2 deletions index.py
Expand Up @@ -384,9 +384,9 @@ class MethodObject(TypedDict):
deprecated: Optional[MethodObjectDeprecated]
externalDocs: Optional[ExternalDocumentationObject]

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

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

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

Expand Down
4 changes: 2 additions & 2 deletions index.rs
Expand Up @@ -437,11 +437,11 @@ pub struct MethodObject {
pub(crate) externalDocs: Option<ExternalDocumentationObject>,
}
#[derive(Serialize, Deserialize)]
pub enum MethodReference {
pub enum MethodOrReference {
MethodObject,
ReferenceObject
}
pub type Methods = Vec<MethodReference>;
pub type Methods = Vec<MethodOrReference>;
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
10 changes: 5 additions & 5 deletions openrpc_document.go

Large diffs are not rendered by default.

0 comments on commit 6133e39

Please sign in to comment.