diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:23:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:23:16 +0000 |
commit | 3e97c51418e6d27e9a81906f347fcb7c78e27d4f (patch) | |
tree | ee596ce1bc9840661386f96f9b8d1f919a106317 /vendor/gipfl/openrpc/src/Components.php | |
parent | Initial commit. (diff) | |
download | icingaweb2-module-incubator-3e97c51418e6d27e9a81906f347fcb7c78e27d4f.tar.xz icingaweb2-module-incubator-3e97c51418e6d27e9a81906f347fcb7c78e27d4f.zip |
Adding upstream version 0.20.0.upstream/0.20.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/gipfl/openrpc/src/Components.php')
-rw-r--r-- | vendor/gipfl/openrpc/src/Components.php | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/vendor/gipfl/openrpc/src/Components.php b/vendor/gipfl/openrpc/src/Components.php new file mode 100644 index 0000000..621a9a0 --- /dev/null +++ b/vendor/gipfl/openrpc/src/Components.php @@ -0,0 +1,68 @@ +<?php + +namespace gipfl\OpenRpc; + +use JsonSerializable; + +/** + * Holds a set of reusable objects for different aspects of the OpenRPC. All + * objects defined within the components object will have no effect on the API + * unless they are explicitly referenced from properties outside the components + * object. + * + * All the fixed fields declared are objects that MUST use keys that match the + * regular expression: ^[a-zA-Z0-9\.\-_]+$ + */ +class Components implements JsonSerializable +{ + use SimpleJsonSerializer; + + /** + * An object to hold reusable Content Descriptor Objects + * + * @var ContentDescriptor[] Map[string, Content Descriptor Object] + */ + public $contentDescriptors; + + /** + * An object to hold reusable Schema Objects + * + * @var SchemaObject[] Map[string, Schema Object] + */ + public $schemas; + + /** + * An object to hold reusable Example Objects + * + * @var Example[] Map[string, Example Object] + */ + public $examples; + + /** + * An object to hold reusable Link Objects + * + * @var Link[] Map[string, Link Object] + */ + public $links; + + /** + * An object to hold reusable Error Objects + * + * @var Error[] Map[string, Error Object] + */ + public $errors; + + /** + * An object to hold reusable Example Pairing Objects + * + * @var ExamplePairing[] Map[string, Example Pairing Object] + */ + public $examplePairingObjects; + + /** + * An object to hold reusable Tag Objects + * + * @var TagObject[] Map[string, Tag Object] + */ + public $tags; +} |