properties as $property => $strategy) { $description["$property"] = [ 'property' => $property, 'type' => Type::BUILTIN_TYPE_STRING, 'required' => true, 'description' => 'The name of the resource.', 'schema' => [ 'type' => Type::BUILTIN_TYPE_STRING, 'enum' => $this->versionedResourceService->getNames(), ], 'openapi' => [ 'allowEmptyValue' => false, ], ]; } return $description; } }