Skip to content

Commit

Permalink
Match changes
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilkybarkid committed Aug 6, 2024
1 parent bb363f6 commit 6fedb5e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/data/clubs.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Clubs = Schema.Array(
}),
)

const Output = Schema.Record(Schema.String, Schema.String)
const Output = Schema.Record({ key: Schema.String, value: Schema.String })

const program = Effect.gen(function* () {
const terminal = yield* Terminal.Terminal
Expand Down
2 changes: 1 addition & 1 deletion src/data/openalex-domains.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Domains = Schema.Struct({
),
})

const DomainNames = Schema.Record(DomainIdSchema, Schema.String)
const DomainNames = Schema.Record({ key: DomainIdSchema, value: Schema.String })

const program = Effect.gen(function* () {
const terminal = yield* Terminal.Terminal
Expand Down
5 changes: 4 additions & 1 deletion src/data/openalex-fields.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ const Fields = Schema.Struct({
),
})

const FieldNames = Schema.Record(FieldIdSchema, Schema.Struct({ name: Schema.String, domain: DomainIdSchema }))
const FieldNames = Schema.Record({
key: FieldIdSchema,
value: Schema.Struct({ name: Schema.String, domain: DomainIdSchema }),
})

const program = Effect.gen(function* () {
const terminal = yield* Terminal.Terminal
Expand Down
5 changes: 4 additions & 1 deletion src/data/openalex-subfields.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ const Subfields = Schema.Struct({
),
})

const SubfieldNames = Schema.Record(SubfieldIdSchema, Schema.Struct({ name: Schema.String, field: FieldIdSchema }))
const SubfieldNames = Schema.Record({
key: SubfieldIdSchema,
value: Schema.Struct({ name: Schema.String, field: FieldIdSchema }),
})

const program = Effect.gen(function* () {
const terminal = yield* Terminal.Terminal
Expand Down
2 changes: 1 addition & 1 deletion src/data/preprint-servers.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Schema } from '@effect/schema'
import { Effect } from 'effect'
import * as PreprintServer from '../lib/PreprintServer.js'

const Output = Schema.Record(Schema.String, Schema.String)
const Output = Schema.Record({ key: Schema.String, value: Schema.String })

const program = Effect.gen(function* () {
const terminal = yield* Terminal.Terminal
Expand Down

0 comments on commit 6fedb5e

Please sign in to comment.