Skip to content

Commit

Permalink
fixed bugs in specifying unAPI formats
Browse files Browse the repository at this point in the history
  • Loading branch information
vanch3d committed Feb 7, 2018
1 parent 0ea1524 commit f386116
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion resources/api/Model/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* )
* )
*/
class Formats
class PublicationFormats
{
/**
* @OAS\Property(
Expand Down Expand Up @@ -50,6 +50,36 @@ class Formats
public $formats;
}

/**
* @OAS\Schema(
* type="object",
* @OAS\Xml(
* name="formats"
* )
* )
*/
class AllFormats
{
/**
* @OAS\Property(
* type="array",
* @OAS\Items(
* ref="#/components/schemas/Format"
* ),
* example={
* { "name":"rdf_bibliontology", "docs":"http://bibliontology.com/", "type":"application/xml"},
* { "name":"bibtex", "docs":"http://www.bibtex.org/","type":"text/plain"}
* },
* @OAS\Xml(
* name="format"
* ),
* )
* @var array
*/
public $formats;

}


/**
* @OAS\Schema(
Expand Down

0 comments on commit f386116

Please sign in to comment.