@@ -18,61 +18,58 @@ class Info extends AbstractObject implements ExtensibleInterface
1818 public $ title ;
1919
2020 /**
21- * (Optional) A short description of the application. CommonMark syntax MAY be used for rich text representation.
21+ * REQUIRED. The version of this OpenAPI document
22+ * (which is distinct from the OpenAPI Specification version or the API implementation version).
23+ *
24+ *
25+ * @var string
26+ */
27+ public $ version ;
28+
29+ /**
30+ * A short description of the application. CommonMark syntax MAY be used for rich text representation.
2231 *
2332 * @var string
2433 */
2534 public $ description ;
2635
2736 /**
28- * (Optional) A URL to the Terms of Service for the API. MUST be in the format of a URL.
37+ * A URL to the Terms of Service for the API. MUST be in the format of a URL.
2938 *
3039 * @var string
3140 */
3241 public $ termsOfService ;
3342
3443 /**
35- * (Optional) The contact information for the exposed API.
44+ * The contact information for the exposed API.
3645 *
3746 * @var Contact
3847 */
3948 public $ contact ;
4049
4150 /**
42- * (Optional) The license information for the exposed API.
51+ * The license information for the exposed API.
4352 *
4453 * @var License
4554 */
4655 public $ license ;
4756
48- /**
49- * REQUIRED. The version of this OpenAPI document
50- * (which is distinct from the OpenAPI Specification version or the API implementation version).
51- *
52- *
53- * @var string
54- */
55- public $ version ;
56-
5757 /**
5858 * @param string $title
5959 * @param string $version
6060 * @param string|null $description
61- * @param string $licenseName
61+ * @param array $additionalProperties
6262 */
6363 public function __construct (
6464 string $ title ,
6565 string $ version ,
6666 string $ description = null ,
67- string $ licenseName = ' Proprietary License '
67+ array $ additionalProperties = []
6868 ) {
69+ parent ::__construct ($ additionalProperties );
70+
6971 $ this ->title = $ title ;
7072 $ this ->version = $ version ;
7173 $ this ->description = $ description ;
72- $ this ->license = new License (
73- [
74- 'name ' => $ licenseName ,
75- ]
76- );
7774 }
7875}
0 commit comments