1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-16 00:00:02 +01:00
VILLASnode/doc/openapi/components/schemas/config/formats/json.yaml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2021-11-18 12:10:36 +01:00
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
2021-11-24 10:32:25 +01:00
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: Apache-2.0
2022-01-10 17:52:36 +01:00
---
2021-11-18 12:10:36 +01:00
allOf:
- type: object
properties:
2021-11-24 10:32:25 +01:00
indent:
type: number
default: 0
description: |
Pretty-print the result, using newlines between array and object items, and indenting with n spaces.
The valid range for n is between 0 and 31 (inclusive), other values result in an undefined output.
If the settings is not used or is 0, no newlines are inserted between array and object items.
compact:
type: boolean
default: false
description: |
This flag enables a compact representation, i.e. sets the separator between array and object items to "," and between object keys and values to ":".
Without this flag, the corresponding separators are ", " and ": " for more readable output.
ensure_ascii:
type: boolean
default: false
description: |
If this flag is used, the output is guaranteed to consist only of ASCII characters.
This is achieved by escaping all Unicode characters outside the ASCII range.
2021-11-24 10:32:25 +01:00
sort_keys:
type: boolean
default: false
description: |
If this flag is used, all the objects in output are sorted by key.
This is useful e.g. if two JSON texts are diffed or visually compared.
escape_slash:
type: boolean
default: false
description:
2021-11-24 10:32:25 +01:00
Escape the `/` characters in strings with `\/`.
2022-04-05 17:32:37 +02:00
2021-12-06 09:25:55 +01:00
- $ref: ../format.yaml