-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExternalDocumentation.php
More file actions
59 lines (52 loc) · 1.78 KB
/
ExternalDocumentation.php
File metadata and controls
59 lines (52 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
namespace Zerotoprod\DataModelOpenapi30;
use Zerotoprod\DataModel\Describe;
use Zerotoprod\DataModelOpenapi30\Helpers\DataModel;
/**
* Allows referencing an external resource for extended documentation.
*
* @see https://spec.openapis.org/oas/v3.0.4.html#external-documentation-object
* @link https://github.com/zero-to-prod/data-model-openapi30
*/
class ExternalDocumentation
{
use DataModel;
/**
* A description of the target documentation. [CommonMark] syntax
* _MAY_ be used for rich text representation.
*
* @see https://spec.openapis.org/oas/v3.0.4.html#fixed-fields-8
* @see https://spec.commonmark.org/
* @see $description
* @link https://github.com/zero-to-prod/data-model-openapi30
*/
public const description = 'description';
/**
* A description of the target documentation. [CommonMark] syntax
* _MAY_ be used for rich text representation.
*
* @see https://spec.openapis.org/oas/v3.0.4.html#fixed-fields-8
* @see https://spec.commonmark.org
* @link https://github.com/zero-to-prod/data-model-openapi30
*/
#[Describe(['nullable'])]
public ?string $description;
/**
* **REQUIRED**. The URL for the target documentation. This _MUST_ be
* in the form of a URL.
*
* @see https://spec.openapis.org/oas/v3.0.4.html#fixed-fields-8
* @see $url
* @link https://github.com/zero-to-prod/data-model-openapi30
*/
public const url = 'url';
/**
* **REQUIRED**. The URL for the target documentation. This _MUST_ be
* in the form of a URL.
*
* @see https://spec.openapis.org/oas/v3.0.4.html#fixed-fields-8
* @link https://github.com/zero-to-prod/data-model-openapi30
*/
#[Describe(['nullable'])]
public ?string $url;
}