Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356261

Summary: EGL validation error with enumerations
Product: z_Archived Reporter: Joseph Vincens <jvincens>
Component: EDTAssignee: Project Inbox <edt.mofmodel-inbox>
Status: CLOSED FIXED QA Contact:
Severity: blocker    
Priority: P3 CC: pharmon
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Joseph Vincens CLA 2011-08-30 20:12:25 EDT
creat an interface 
Interface IGeoName 
  	function search(query string in) returns(GeoNamesData) 
   		{@GetRest {uriTemplate="http://ws.geonames.org/search?q={query}", responseFormat=Encoding.XML}};
  	function searchJSON(query string in) returns(GeoNamesData) 
   		{@GetRest {uriTemplate="http://ws.geonames.org/searchJSON?q={query}", responseFormat=Encoding.JSON}};
end 

I'm getting the following errors:
Description	Resource	Path	Location	Type
IWN.VAL.3054.e 17/87 Property: responseFormat.  The value for this property must be one of the following: NONE, USE_CONTENTTYPE, _FORM, json, xml.	IGeoName.egl	/GeoNames/EGLSource/interfaces	line 17	EDT Problem
IWN.VAL.3054.e 19/91 Property: responseFormat.  The value for this property must be one of the following: NONE, USE_CONTENTTYPE, _FORM, json, xml.	IGeoName.egl	/GeoNames/EGLSource/interfaces	line 19	EDT Problem

No matter what I set it to I get the same error. I need this fixed ASAP I can't continue until it's fixed.
Comment 1 Paul Harmon CLA 2011-09-09 15:29:28 EDT
The problem was stemming from the fact that responseFormat is defined as nullable.

I have fixed problems in AnnotationBinding and EGL2MofExpression to correct this.
Comment 2 Joseph Vincens CLA 2011-09-12 08:27:44 EDT
verified