nova-api team mailing list archive
-
nova-api team
-
Mailing list archive
-
Message #00002
Re: Error when generating REST stubs from compute api wadl
My understanding is that this isn't supporrted; WADL is used in OpenStack for generating documentation and QA. Generating static bindings from a description like this leads to brittleness.
Cheers,
On 05/12/2011, at 8:32 PM, Pedro Navarro Pérez wrote:
> Hi all,
>
> I've tried to use the tool wadl2java to generate REST stubs from WADL compute api 1.1, and I'm getting the next error:
>
> Processing: file:/home/pnavarro/dev/wadl-dist-1.1-bin/wadl-dist-1.1/bin/os-compute-1.1.wadl
> Processing: file:/home/pnavarro/dev/wadl-dist-1.1-bin/wadl-dist-1.1/bin/xsd/api.xsd
> Processing: file:/home/pnavarro/dev/wadl-dist-1.1-bin/wadl-dist-1.1/bin/xsd/api-common.xsd
> Warning: reference #DetailImageList not found in file:/home/pnavarro/dev/wadl-dist-1.1-bin/wadl-dist-1.1/bin/os-compute-1.1.wadl, skipping
> Warning: s4s-elt-invalid-content.1: The content of 'ServerWithOnlyIDNameLinks' is invalid. Element 'assert' is invalid, misplaced, or occurs too often.
> Warning: s4s-elt-invalid-content.1: The content of 'ServerForUpdate' is invalid. Element 'assert' is invalid, misplaced, or occurs too often.
> Warning: s4s-elt-invalid-content.1: The content of 'FlavorWithOnlyIDNameLinks' is invalid. Element 'assert' is invalid, misplaced, or occurs too often.
> Warning: s4s-elt-invalid-content.1: The content of 'ImageWithOnlyIDNameLinks' is invalid. Element 'assert' is invalid, misplaced, or occurs too often.
> Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"http://docs.openstack.org/compute/api/v1.1"] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.
> Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"http://docs.openstack.org/compute/api/v1.1"] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.
> Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"http://docs.openstack.org/compute/api/v1.1"] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.
> Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"http://docs.openstack.org/compute/api/v1.1"] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.
> Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"http://docs.openstack.org/compute/api/v1.1"] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.
> Warning: rcase-Recurse.2: There is not a complete functional mapping between the particles.
> Warning: derivation-ok-restriction.5.4.2: Error for type 'ServersWithOnlyIDsNamesLinks'. The particle of the type is not a valid restriction of the particle of the base.
> Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"http://docs.openstack.org/compute/api/v1.1"] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.
> Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"http://docs.openstack.org/compute/api/v1.1"] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.
> Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"http://docs.openstack.org/compute/api/v1.1"] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.
> Warning: rcase-Recurse.2: There is not a complete functional mapping between the particles.
> Warning: derivation-ok-restriction.5.4.2: Error for type 'FlavorsWithOnlyIDsNamesLinks'. The particle of the type is not a valid restriction of the particle of the base.
> Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"http://docs.openstack.org/compute/api/v1.1"] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.
> Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"http://docs.openstack.org/compute/api/v1.1"] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.
> Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"http://docs.openstack.org/compute/api/v1.1"] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.
> Warning: rcase-Recurse.2: There is not a complete functional mapping between the particles.
> Warning: derivation-ok-restriction.5.4.2: Error for type 'ImagesWithOnlyIDsNamesLinks'. The particle of the type is not a valid restriction of the particle of the base.
> Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"http://docs.openstack.org/compute/api/v1.1"] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.
> Warning: sch-props-correct.2: A schema cannot contain two global components with the same name; this schema contains two occurrences of 'http://docs.openstack.org/common/api/v1.0,version'.
> Warning: s4s-elt-invalid-content.1: The content of 'VersionChoiceList' is invalid. Element 'assert' is invalid, misplaced, or occurs too often.
> Warning: s4s-elt-invalid-content.1: The content of 'VersionChoiceRoot' is invalid. Element 'assert' is invalid, misplaced, or occurs too often.
> Warning: s4s-elt-invalid-content.1: The content of 'Extension' is invalid. Element 'assert' is invalid, misplaced, or occurs too often.
> Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"http://docs.openstack.org/common/api/v1.0"] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.
> Warning: cos-nonambig: "http://www.w3.org/2005/Atom":link and WC[##other:"http://docs.openstack.org/common/api/v1.0"] (or elements from their substitution group) violate "Unique Particle Attribution". During validation against this schema, ambiguity would be created for those two particles.
> "Fatal Error: Unexpected <assert> appears at line 304 column 116
>
> Have anyone tried and success getting REST clients for JAVA from wadl?
>
> Thanks in advance
> --
> Mailing list: https://launchpad.net/~nova-api
> Post to : nova-api@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~nova-api
> More help : https://help.launchpad.net/ListHelp
--
Mark Nottingham http://www.mnot.net/
Follow ups
References