Skip to content

Commit

Permalink
Align bindings and wrappers with new "UnknownAInotDLattr" validation
Browse files Browse the repository at this point in the history
  • Loading branch information
terryburton committed May 28, 2024
1 parent d77aab8 commit 2dfd35f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/dotnet-lib/GS1Encoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ public enum Validation
RequisiteAIs,
/// <summary>Repeated AIs having same value</summary>
RepeatedAIs,
/// <summary>Unknown AIs not permitted as GS1 DL URI data attributes</summary>
UnknownAInotDLattr,
/// <summary>Value is the number of validations</summary>
NUMVALIDATIONS,
};
Expand Down
5 changes: 4 additions & 1 deletion src/ios/GS1 Encoders App/GS1Encoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,13 @@ class GS1Encoder {
/// Repeated AIs having same value
RepeatedAIs,

/// Unknown AIs not permitted as GS1 DL URI data attributes
UnknownAInotDLattr,

/// Value is the number of valudations
NUMVALIDATIONS
};

/**
* An opaque pointer used by the native code to represent an
* "instance" of the library. It is hidden behind the object
Expand Down
5 changes: 5 additions & 0 deletions src/java/org/gs1/gs1encoders/GS1Encoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,11 @@ public enum Validation {
*/
RepeatedAIs,

/**
* Unknown AIs not permitted as GS1 DL URI data attributes
*/
UnknownAInotDLattr,

/**
* Value is the number of validations
*/
Expand Down
9 changes: 5 additions & 4 deletions src/js-wasm/gs1encoder.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -491,10 +491,11 @@ GS1encoder.symbology = symbology;

/** @ignore */
const validation = {
MutexAIs: 0, ///< Mutually exclusive AIs
RequisiteAIs: 1, ///< Mandatory associations between AIs
RepeatedAIs: 2, ///< Repeated AIs having same value
NUMVALIDATIONS: 3, ///< Value is the number of validations
MutexAIs: 0, ///< Mutually exclusive AIs
RequisiteAIs: 1, ///< Mandatory associations between AIs
RepeatedAIs: 2, ///< Repeated AIs having same value
UnknownAInotDLattr: 3, ///< Unknown AIs not permitted as GS1 DL URI data attributes
NUMVALIDATIONS: 4, ///< Value is the number of validations
};

GS1encoder.validation = validation;
Expand Down

0 comments on commit 2dfd35f

Please sign in to comment.