Newer
Older
web-services / loterre-resolvers / v1 / process.ini
@Nicolas Thouvenin Nicolas Thouvenin on 13 Apr 2023 1 KB fix: wrong path and wrong location
# Context input/output
append = dump?indent=true

# OpenAPI Documentation - JSON format (dot notation)
post.responses.default.description = Enrich json file
post.responses.default.content.application/json.schema.type = array
post.responses.default.content.application/json.schema.items.type = object
post.responses.default.content.application/json.schema.items.properties.id.type = string
post.responses.default.content.application/json.schema.items.properties.value.$ref = #/components/schemas/anyValue
post.summary = Transform XML/SKOS file to array of JSON Objects
post.requestBody.required = true
post.requestBody.required = true
post.requestBody.content.application/json.schema.$ref = #/components/schemas/JSONStream

# Necessary plugins
[use]
plugin = basics
plugin = analytics
plugin = storage

[env]
path = location
value= fix(`${env('TMPDIR', '/tmp')}/databases/${env('loterreID', 'noid')}`)

# Flow configuration
[JSONParse]
separator = *

# On utilise [expand] pour travailler uniqument sur le champ value, sans toucher aux autres champs (si ils existent)
[expand]
path = value
size = 1
file = ./v1/combine.ini

; Pour les documents sans résulat, on donne une valeur par défaut
[swing]
test = get('value.rdf$about').isEmpty()
[swing/assign]
path = value
value = fix('n/a')