Skip to content

Commit

Permalink
Migrated to SherpaJS 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SellersEvan committed Apr 1, 2024
1 parent 7ff6c06 commit 188da99
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 10 deletions.
31 changes: 27 additions & 4 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 @@ -11,6 +11,6 @@
"ajv": "^8.12.0",
"ajv-formats": "^2.1.1",
"metadapter-event": "^1.2.0",
"sherpa-core": "^1.0.4"
"sherpa-core": "^1.1.1"
}
}
5 changes: 2 additions & 3 deletions sherpa.module.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { SherpaJS } from "sherpa-core";
import { ContextSchema, SherpaJS } from "sherpa-core";
import { Config } from "./src/model.js";


export default SherpaJS.New.module({
name: "events",
interface: ContextSchema<Config>
});


export type ContextSchema = Config;
4 changes: 2 additions & 2 deletions sherpa.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export default SherpaJS.New.server({
schema: {
type: "object",
properties: {
foo: {type: "integer"},
bar: {type: "string"}
foo: {type: "integer"},
bar: {type: "string"}
},
required: ["foo"],
additionalProperties: false
Expand Down

0 comments on commit 188da99

Please sign in to comment.