Skip to content

Commit 214994b

Browse files
Rearranged licence, readme and notice files
1 parent 4da2022 commit 214994b

6 files changed

Lines changed: 57 additions & 261 deletions

File tree

Solidsoft.Reply.Parsers.Gs1Ai/DEVELOPER-NOTICE.txt renamed to DEVELOPER-NOTICE.txt

File renamed without changes.

LICENSE.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [yyyy] [name of copyright owner]
189+
Copyright 2018-2024 Solidsoft Reply Ltd.
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.
@@ -198,4 +198,4 @@
198198
distributed under the License is distributed on an "AS IS" BASIS,
199199
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200200
See the License for the specific language governing permissions and
201-
limitations under the License.
201+
limitations under the License.

README.md

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,45 @@
1-
# Solidsoft Reply GS1 Validating Parser
2-
The Solidsoft Reply parser for GS1 Application Identifiers is a comprehensive validating parser that conforms to the GS1 General Specifications and parses strings containing a concatenation of AIs /value pairs using ASCII 29 as the FNC1 delimiter.
3-
4-
GS1 defines AIs as part of its general specifications. See [GS1 General Specifications - Standards | GS1]( https://www.gs1.org/standards/barcodes-epcrfid-id-keys/gs1-general-specifications)
1+
This library provides a comprehensive validating parser for GS1 Application Identifiers (AIs). GS1 defines AIs as part of its general specifications. See [GS1 General Specifications - Standards | GS1]( https://www.gs1.org/standards/barcodes-epcrfid-id-keys/gs1-general-specifications)
52
The parser validates each AI against the format defined for that AI. It calls back into an Action for each AI reported to it. For each AI, parsed data is reported as a Resolved Entity object. Each Resolved Entity includes a collection of all errors reported while parsing the AI.
63
The library depends on the Solidsoft.Reply.Parsers.Common library.
74

8-
This solution contains two projects - the parser itself, and a set of tests. Further information is provided in project-level read-me files and the Wiki.
5+
## Validation Errors:
6+
For each invalid AI, the parser may output a combination of one or more errors.
7+
8+
The following validation errors are supported:
9+
10+
2001
11+
No data provided.
12+
13+
2002
14+
Invalid application identifier {0}.
15+
16+
2003
17+
Entity is incorrectly terminated with an FNC1.
18+
19+
2004
20+
Fixed-width entity does not contain sufficient number of characters.
21+
22+
2005
23+
The value{0} is invalid for AI {1}.
24+
25+
2006
26+
No entity value provided for AI {0}.
27+
28+
2007
29+
Validation for AI {0} timed out.
30+
31+
2008 - GS1 identifiers whose last digit is checksum
32+
The value{0} has an invalid checksum.
33+
34+
2009 - GS1 identifiers with a checksum at position 13 followed by optional text
35+
The value{0} has an invalid checksum.
36+
37+
2010 - GS1 identifiers with a checksum at position 14 followed by optional text
38+
The value{0} has an invalid checksum.
39+
40+
2011
41+
The implied decimal point position (inverse exponent) is specified incorrectly.
42+
43+
2100
44+
The value{0} does not match the specified pattern for the data element.
45+

Solidsoft.Reply.Parsers.Gs1Ai/LICENSE.txt

Lines changed: 0 additions & 201 deletions
This file was deleted.

Solidsoft.Reply.Parsers.Gs1Ai/README.md

Lines changed: 0 additions & 45 deletions
This file was deleted.

Solidsoft.Reply.Parsers.Gs1Ai/Solidsoft.Reply.Parsers.Gs1Ai.csproj

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@
5151
<AdditionalFiles Include="stylecop.json" />
5252
</ItemGroup>
5353

54+
<ItemGroup>
55+
<Content Include="..\DEVELOPER-NOTICE.txt" Link="LicenceAndNotices\DEVELOPER-NOTICE.txt" />
56+
<Content Include="..\LICENSE.txt" Link="LicenceAndNotices\LICENSE.txt" />
57+
</ItemGroup>
58+
5459
<ItemGroup>
5560
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
5661
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
@@ -64,14 +69,6 @@
6469
</ItemGroup>
6570

6671
<ItemGroup>
67-
<Resource Include="LICENSE.txt">
68-
<Pack>True</Pack>
69-
<PackagePath>\</PackagePath>
70-
</Resource>
71-
<Resource Include="README.md">
72-
<Pack>True</Pack>
73-
<PackagePath>\</PackagePath>
74-
</Resource>
7572
<Resource Include="Solidsoft Reply - LOGO Square_small.jpg">
7673
<Pack>True</Pack>
7774
<PackagePath>\</PackagePath>
@@ -339,4 +336,12 @@
339336
</EmbeddedResource>
340337
</ItemGroup>
341338

339+
<ItemGroup>
340+
<Folder Include="LicenceAndNotices\" />
341+
</ItemGroup>
342+
343+
<ItemGroup>
344+
<None Include="..\README.md" Link="LicenceAndNotices\README.md" />
345+
</ItemGroup>
346+
342347
</Project>

0 commit comments

Comments
 (0)