Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ dist/*
**/node_modules/*
jest.config.ts
test.ts
test_output*
public
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
build-test:
name: Build, Lint and Test
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Run tests
run: npm run test_schema

- name: Build check
run: npm run prepare_publish

- name: Documentation check
run: npm run generate_docs
16 changes: 0 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,10 @@ on:
push:
branches:
- main
pull_request:
branches:
- main

name: Generate Html und Publish

jobs:
validate:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Run html generation
run: |
npm ci
npm run generate_docs

deploy-build:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import {
`CodingScheme` accepts either a JSON string or a parsed object.

```ts
const raw = '{"version":"3.3","variableCodings":[]}';
const raw = '{"version":"3.4","variableCodings":[]}';
const scheme = new CodingScheme(raw);

// normalized, versioned JSON string
Expand All @@ -46,7 +46,7 @@ const normalized = scheme.toString();

```ts
const status = CodingScheme.checkVersion({
version: "3.3",
version: "3.4",
variableCodings: [],
} satisfies CodingSchemeData);

Expand Down
2 changes: 1 addition & 1 deletion coding-scheme.schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "coding-scheme@iqb-standard@3.3",
"$id": "coding-scheme@iqb-standard@3.4",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Coding Scheme",
"description": "Data structure to specify all processing steps of response data in order to get coded and scored data for analyses.",
Expand Down
2 changes: 1 addition & 1 deletion coding-scheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const booleanRules = ['IS_TRUE', 'IS_FALSE'];
export const DeriveConcatDelimiter = '_';

export const CodingSchemeVersionMajor = 3;
export const CodingSchemeVersionMinor = 3;
export const CodingSchemeVersionMinor = 4;

export class CodingScheme {
variableCodings: VariableCodingData[] = [];
Expand Down
9 changes: 9 additions & 0 deletions oldChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

For newer changes see [Releases](https://github.com/iqb-specifications/coding-scheme/releases)

# 3.4

Erweiterung CodingSchemeProblemType

- `RULE_REGEX_INVALID`
- `RULE_PARAMETER_INVALID`
- `RULE_NUMERIC_RANGE_INVALID`
- `RULESET_VALUE_ARRAY_POS_INVALID`

# 3.3

- `CODER_TRAINING_REQUIRED` neuer Parameter für processing
Expand Down
Loading
Loading