Skip to content

Commit

Permalink
Merge branch 'renovate/stencila-schema-1.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Mar 17, 2021
2 parents 3109f0d + 59c0827 commit 2f131ae
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"dependencies": {
"@stencila/executa": "^1.15.7",
"@stencila/logga": "^4.0.0",
"@stencila/schema": "^0.47.2",
"@stencila/schema": "^1.1.0",
"@stencila/thema": "^2.22.1",
"ajv": "^6.12.6",
"appdata-path": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/codecs/jsonld/__file_snapshots__/article.jsonld
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"@context": "http://schema.stenci.la/v0/jsonld/",
"@context": "http://schema.stenci.la/v1/jsonld/",
"type": "Article",
"authors": [
{
Expand Down
2 changes: 1 addition & 1 deletion src/codecs/xml/__file_snapshots__/kitchen-sink.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<stencila xmlns="https://schema.stenci.la/v0/xml">
<stencila xmlns="https://schema.stenci.la/v1/xml">
<Array>
<Null/>
<Boolean>true</Boolean>
Expand Down
5 changes: 2 additions & 3 deletions src/util/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
* that effort.
*/

import stencila from '@stencila/schema'
import JsonSchema from '@stencila/schema/dist/ts/jsonSchema'
import stencila, { JsonSchema } from '@stencila/schema'
import Ajv from 'ajv'
import betterAjvErrors from 'better-ajv-errors'
import fs from 'fs-extra'
Expand Down Expand Up @@ -206,7 +205,7 @@ const codecCoerce: Ajv.SchemaValidateFunction = async (
return true
}

coercers.addKeyword('codec', {
coercers.addKeyword('parser', {
type: 'string',
modifying: true,
async: true,
Expand Down

0 comments on commit 2f131ae

Please sign in to comment.