mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-26 20:12:44 +00:00
libucl: import snapshot 2024-02-06
This commit is contained in:
commit
ddca081d38
11
contrib/libucl/libucl.pc
Normal file
11
contrib/libucl/libucl.pc
Normal file
@ -0,0 +1,11 @@
|
||||
prefix=/usr/local
|
||||
exec_prefix=${prefix}
|
||||
libdir=${exec_prefix}/lib
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: LibUCL
|
||||
Description: Universal configuration library
|
||||
Version: 0.9.0
|
||||
Libs: -L${libdir} -lucl
|
||||
Libs.private:
|
||||
Cflags: -I${includedir}/
|
15
contrib/libucl/python/ucl.pyi
Normal file
15
contrib/libucl/python/ucl.pyi
Normal file
@ -0,0 +1,15 @@
|
||||
# Stubs for ucl (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
UCL_EMIT_CONFIG = ... # type: int
|
||||
UCL_EMIT_JSON = ... # type: int
|
||||
UCL_EMIT_JSON_COMPACT = ... # type: int
|
||||
UCL_EMIT_MSGPACK = ... # type: int
|
||||
UCL_EMIT_YAML = ... # type: int
|
||||
|
||||
def dump(*args, **kwargs): ...
|
||||
def load(*args, **kwargs): ...
|
||||
def validate(*args, **kwargs): ...
|
||||
|
||||
class SchemaError(Exception): ...
|
32
contrib/libucl/tests/schema/definitions.json.disabled
Normal file
32
contrib/libucl/tests/schema/definitions.json.disabled
Normal file
@ -0,0 +1,32 @@
|
||||
[
|
||||
{
|
||||
"description": "valid definition",
|
||||
"schema": {"$ref": "http://highsecure.ru/ucl-schema/schema#"},
|
||||
"tests": [
|
||||
{
|
||||
"description": "valid definition schema",
|
||||
"data": {
|
||||
"definitions": {
|
||||
"foo": {"type": "integer"}
|
||||
}
|
||||
},
|
||||
"valid": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "invalid definition",
|
||||
"schema": {"$ref": "http://highsecure.ru/ucl-schema/schema#"},
|
||||
"tests": [
|
||||
{
|
||||
"description": "invalid definition schema",
|
||||
"data": {
|
||||
"definitions": {
|
||||
"foo": {"type": 1}
|
||||
}
|
||||
},
|
||||
"valid": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
76
contrib/libucl/tests/schema/refRemote.json.disabled
Normal file
76
contrib/libucl/tests/schema/refRemote.json.disabled
Normal file
@ -0,0 +1,76 @@
|
||||
[
|
||||
{
|
||||
"description": "remote ref",
|
||||
"schema": {"$ref": "http://highsecure.ru/ucl-schema/remotes/integer.json"},
|
||||
"tests": [
|
||||
{
|
||||
"description": "remote ref valid",
|
||||
"data": 1,
|
||||
"valid": true
|
||||
},
|
||||
{
|
||||
"description": "remote ref invalid",
|
||||
"data": "a",
|
||||
"valid": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "fragment within remote ref",
|
||||
"schema": {"$ref": "http://highsecure.ru/ucl-schema/remotes/subSchemas.json#/integer"},
|
||||
"tests": [
|
||||
{
|
||||
"description": "remote fragment valid",
|
||||
"data": 1,
|
||||
"valid": true
|
||||
},
|
||||
{
|
||||
"description": "remote fragment invalid",
|
||||
"data": "a",
|
||||
"valid": false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "ref within remote ref",
|
||||
"schema": {
|
||||
"$ref": "http://highsecure.ru/ucl-schema/remotes/subSchemas.json#/refToInteger"
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
"description": "ref within ref valid",
|
||||
"data": 1,
|
||||
"valid": true
|
||||
},
|
||||
{
|
||||
"description": "ref within ref invalid",
|
||||
"data": "a",
|
||||
"valid": false
|
||||
}
|
||||
]
|
||||
}
|
||||
/*
|
||||
{
|
||||
"description": "change resolution scope",
|
||||
"schema": {
|
||||
"id": "http://highsecure.ru/ucl-schema/remotes/",
|
||||
"items": {
|
||||
"id": "folder/",
|
||||
"items": {"$ref": "folderInteger.json"}
|
||||
}
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
"description": "changed scope ref valid",
|
||||
"data": [[1]],
|
||||
"valid": true
|
||||
},
|
||||
{
|
||||
"description": "changed scope ref invalid",
|
||||
"data": [["a"]],
|
||||
"valid": false
|
||||
}
|
||||
]
|
||||
}
|
||||
*/
|
||||
]
|
Loading…
Reference in New Issue
Block a user