Skip to content

Commit

Permalink
Sync with latest Syntax Dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
terryburton committed Jul 26, 2024
1 parent 4baa014 commit 4a2c65c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions src/c-lib/gs1-syntax-dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,22 +119,23 @@
# AI Flags Specification Attributes Title

00 *? N18,csum,key dlpkey # SSCC
01 *? N14,csum,key ex=02,255,37 dlpkey=22,10,21|235 # GTIN
02 *? N14,csum,key req=37 # CONTENT
10 ? X..20 req=01,02,8006,8026 # BATCH/LOT
01 *? N14,csum,key ex=255,37 dlpkey=22,10,21|235 # GTIN
02 *? N14,csum,key ex=01,03 req=37 # CONTENT
03 * N14,csum,key ex=01,02,37 # MTO GTIN
10 ? X..20 req=01,02,03,8006,8026 # BATCH/LOT
11 *? N6,yymmd0 req=01,02,8006,8026 # PROD DATE
12 *? N6,yymmd0 req=8020 # DUE DATE
13 *? N6,yymmd0 req=01,02,8006,8026 # PACK DATE
15 *? N6,yymmd0 req=01,02,8006,8026 # BEST BEFORE or BEST BY
16 *? N6,yymmd0 req=01,02,8006,8026 # SELL BY
17 *? N6,yymmd0 req=01,02,255,8006,8026 # USE BY or EXPIRY
20 *? N2 req=01,02,8006,8026 # VARIANT
21 X..20 req=01,8006 ex=235 # SERIAL
21 X..20 req=01,03,8006 ex=235 # SERIAL
22 X..20 req=01 # CPV
235 X..28 req=01 # TPX
240 ? X..30 req=01,02,8006,8026 # ADDITIONAL ID
241 ? X..30 req=01,02,8006,8026 # CUST. PART No.
242 ? N..6 req=01,02,8006,8026 # MTO VARIANT
242 ? N..6 req=01,02,03,8006,8026 # MTO VARIANT
243 ? X..20 req=01 # PCN
250 ? X..30 req=01,8006 req=21 # SECONDARY SERIAL
251 ? X..30 req=01,8006 # REF. TO SOURCE
Expand Down Expand Up @@ -321,6 +322,7 @@
8011 N..12,nozeroprefix req=8010 # CPID SERIAL
8012 ? X..20 req=01,8006 # VERSION
8013 ? X..25,csumalpha,key dlpkey # GMN
8014 X..25,csumalpha,key,hasnondigit req=01 # MUDI
8017 ? N18,csum,key ex=8018 dlpkey=8019 # GSRN - PROVIDER
8018 ? N18,csum,key ex=8017 dlpkey=8019 # GSRN - RECIPIENT
8019 N..10 req=8017,8018 # SRIN
Expand Down
2 changes: 1 addition & 1 deletion src/c-lib/syntax/lint_iso3166alpha2.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ GS1_SYNTAX_DICTIONARY_API gs1_lint_err_t gs1_lint_iso3166alpha2(const char* cons
0x1e9afb77f7bdbb7b, 0xe4fc21a8012b0070, 0x003a900df9dfa800, 0xb160181ef00202c0,
0x00b8d42f8281f2bf, 0x3fffeba4d2100080, 0x023cf1ca80000002, 0x008a8fbfe75cddf9,
0x59820820eaa10200, 0x4002000000000800, 0x1020020080000000
};
#endif
};

/// \cond
#define GS1_LINTER_ISO3166ALPHA2_LOOKUP(cc) do { \
Expand Down

0 comments on commit 4a2c65c

Please sign in to comment.