Skip to content

Commit c869a7b

Browse files
committed
Initialize standards skeleton + vectors
0 parents  commit c869a7b

11 files changed

Lines changed: 100 additions & 0 deletions

File tree

.github/workflows/standards-ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Standards CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
smoke:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- run: test -f README.md
14+
- run: test -d fixtures/test_vectors
15+
- run: test -f VERSION
16+
- run: test -f FAILURE_CODES.json
17+
- run: test -f SCOPE.md

FAILURE_CODES.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"namespace": "vatfix-xml",
3+
"codes": [
4+
{
5+
"code": "XML.SCHEMA.INVALID",
6+
"meaning": "XML does not conform to schema",
7+
"severity": "FAIL"
8+
},
9+
{
10+
"code": "XML.STRUCTURE.MALFORMED",
11+
"meaning": "XML is not well-formed",
12+
"severity": "BLOCK"
13+
},
14+
{
15+
"code": "XML.VAT_FIELD.MISSING",
16+
"meaning": "Required VAT field missing in XML",
17+
"severity": "FAIL"
18+
}
19+
]
20+
}

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
```
2+
SUB-STD-001
3+
vatfix-xml
4+
XML schemas for VAT documents
5+
6+
STATUS: PENDING
7+
REGISTRY: https://vatfix.eu
8+
SNAPSHOT: https://vatfix.eu/REGISTRY_SNAPSHOT.json
9+
```
10+
11+
Registered standard. Identity governed by VATFIX registry.

SCOPE.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# SCOPE
2+
3+
## In Scope
4+
5+
- XML schemas for VAT-related documents
6+
- XSD validation rules
7+
- Canonical mappings
8+
- Test vectors
9+
10+
## Out of Scope
11+
12+
- JSON formats
13+
- Binary formats
14+
- Non-XML document types

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.0.0
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<invoice>
3+
<vat_number country="DE">123456789</vat_number>
4+
<amount>100.00</amount>
5+
<!-- Missing closing tag -->
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<invoice>
3+
<amount>100.00</amount>
4+
<vat_rate>19</vat_rate>
5+
</invoice>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<credit_note>
3+
<vat_number country="FR">AB123456789</vat_number>
4+
<amount>-50.00</amount>
5+
<vat_rate>20</vat_rate>
6+
</credit_note>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<invoice>
3+
<vat_number country="DE">123456789</vat_number>
4+
<amount>100.00</amount>
5+
<vat_rate>19</vat_rate>
6+
</invoice>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<refund>
3+
<vat_number country="IT">12345678901</vat_number>
4+
<amount>25.00</amount>
5+
<vat_rate>22</vat_rate>
6+
</refund>

0 commit comments

Comments
 (0)