Skip to content

Commit

Permalink
atualizado schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Israel Merljak committed Nov 14, 2018
1 parent 6cebd9e commit 7f769a4
Show file tree
Hide file tree
Showing 223 changed files with 7,258 additions and 553 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
</execution>
</executions>
<configuration>
<schemaDirectory>schemas/xsd</schemaDirectory>
<schemaDirectory>schemas.old/xsd</schemaDirectory>
<schemaIncludes>
<schemaInclude>xsd-cct/RootSchema.xsd</schemaInclude>
<schemaInclude>xsd-due/*.xsd</schemaInclude>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"$id": "http://www.pucomex.serpro.gov.br/catp/operador_estrangeiro_retorno.schema.json",
"type": "object",
"definitions": {},
"$schema": "http://json-schema.org/draft-06/schema#",
"additionalProperties": false,
"properties": {
"items": {
"type": "object",
"properties": {
"seq": {
"type": "integer"
},
"codigo": {
"type": [
"string",
"null"
]
},
"erros": {
"type": "array",
"items": {
"type": "string"
}
},
"sucesso": {
"type": "boolean"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"$id": "http://www.pucomex.serpro.gov.br/catp/operador_estrangeiro.schema.json",
"type": "object",
"definitions": {},
"$schema": "http://json-schema.org/draft-06/schema#",
"properties": {
"items": {
"type": "object",
"properties": {
"seq": {
"type": "integer"
},
"cnpjRaiz": {
"type": "string"
},
"codigo": {
"type": "string"
},
"nome": {
"type": "string"
},
"logradouro": {
"type": "string"
},
"nomeCidade": {
"type": "string"
},
"codigoSubdivisaoPais": {
"type": [
"string",
"null"
]
},
"codigoPais": {
"type": "string"
},
"cep": {
"type": [
"string",
"null"
]
}
}
}
}
}
31 changes: 31 additions & 0 deletions schemas.old/json/catp/produto-retorno/produto_retorno.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"definitions": {},
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"$id": "http://www.pucomex.serpro.gov.br/catp/produto_retorno.schema.json",
"properties": {
"items": {
"type": "object",
"properties": {
"seq": {
"type": "integer"
},
"codigo": {
"type": [
"string",
"null"
]
},
"erros": {
"type": "array",
"items": {
"type": "string"
}
},
"sucesso": {
"type": "boolean"
}
}
}
}
}
108 changes: 108 additions & 0 deletions schemas.old/json/catp/produto/produto.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
{
"definitions": {},
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"$id": "http://www.pucomex.serpro.gov.br/catp/produto.schema.json",
"properties": {
"items": {
"type": "object",
"properties": {
"seq": {
"type": "integer"
},
"codigo": {
"type": [
"string",
"null"
]
},
"descricao": {
"type": [
"string",
"null"
]
},
"cnpjRaiz": {
"type": "string"
},
"situacao": {
"type": "string"
},
"modalidade": {
"type": "string"
},
"ncm": {
"type": "string"
},
"codigoNaladi": {
"type": [
"integer",
"null"
]
},
"codigoGPC": {
"type": [
"integer",
"null"
]
},
"codigoGPCBrick": {
"type": [
"integer",
"null"
]
},
"codigoUNSPSC": {
"type": [
"integer",
"null"
]
},
"paisOrigem": {
"type": "string"
},
"cpfCnpjFabricante": {
"type": [
"string",
"null"
]
},
"fabricanteConhecido": {
"type": "boolean"
},
"codigoOperadorEstrangeiro": {
"type": [
"integer",
"string"
]
},
"atributos": {
"type": [
"array",
"null"
],
"items": {
"type": "object",
"properties": {
"atributo": {
"type": "string"
},
"valor": {
"type": "string"
}
}
}
},
"codigosInterno": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"definitions": {},
"$schema": "http://json-schema.org/draft-06/schema#",
"type": "object",
"$id": "http://www.pucomex.serpro.gov.br/cct/consulta-conteiner.schema.json",
"properties": {
"listaRetorno": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"numeroConteiner": {
"type": "string"
},
"pesoBruto": {
"type": "number"
},
"tara": {
"type": "number"
},
"lacres": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "string"
}
},
"documentosCarga": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"documentos": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"numeroDUE": {
"type": "string"
},
"numeroRUC": {
"type": "string"
}
}
}
}
}
}
},
"permiteMovimentacao": {
"type": "boolean"
}
}
}
},
"listaMensagem": {
"type": "array",
"items": {
"type": "object",
"properties": {
"codigo": {
"type": "string"
},
"mensagem": {
"type": "string"
}
}
}
}
}
}
Loading

0 comments on commit 7f769a4

Please sign in to comment.