Skip to content

fix(ocpi-2.1.1): align domain models with the specification#201

Merged
lilgallon merged 1 commit into
IZIVIA:mainfrom
juherr:fix/ocpi-211-spec-compliance
Jul 16, 2026
Merged

fix(ocpi-2.1.1): align domain models with the specification#201
lilgallon merged 1 commit into
IZIVIA:mainfrom
juherr:fix/ocpi-211-spec-compliance

Conversation

@juherr

@juherr juherr commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • align OCPI 2.1.1 CDR, Session, Command, Token, Credentials, Location, Tariff, and Version domain models with the reference specification
  • update validation and both Jackson and kotlinx.serialization integrations for the corrected wire contracts
  • add cross-serializer compliance coverage for corrected shapes, enum values, and identifier limits

Breaking changes

This intentionally removes OCPI 2.2-only fields and values from the 2.1.1 public API and replaces the multi-role credentials contract with the flat OCPI 2.1.1 shape.

Validation

  • ./gradlew build
  • targeted OCPI 2.1.1 tests with Jackson and kotlinx.serialization
  • ktlint checks for the core and serialization integration modules

fix #200

@sonarqubecloud

Copy link
Copy Markdown

@lilgallon lilgallon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks :)

@lilgallon
lilgallon merged commit bf6c5b6 into IZIVIA:main Jul 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ocpi-toolkit-2.1.1: several objects/enums carry OCPI 2.2 values/fields

2 participants