swagger-springmvc-example icon indicating copy to clipboard operation
swagger-springmvc-example copied to clipboard

Error generate XML of

Open katiaSouza opened this issue 11 years ago • 4 comments

@dilipkrish When I tries see the XML of my service happens an error(the page can't be rendered). I could see that occurrs error because my model have a field that is generic list, when I removed the list, my application returned works and I could see the XML.

Error message:

This page contains the following errors:

error on line 1 at column 10260: Extra content at the end of the document Below is a rendering of the page up to the first error.

Model Customer{ String id; String name; List<Address> address; ( with generic list occurs error, without generic list don't occurs error)

get and set... }

Are you know any about this?

katiaSouza avatar Jun 19 '13 20:06 katiaSouza

@katiaSouza Looks like your formatting is all weird. Cant really make out what it is. Could you use the markdown and paste your code between 3 back ticks as described here

dilipkrish avatar Jun 20 '13 04:06 dilipkrish

public class Customer{
        private String id;
        private String name;
        private List[Address] address;//(with generic list occurs error, without generic list don't occurs error)
    public String getId(){
        return id;
    }
    public void setId(String id){
        this.id = id;
    }
        public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public List[Address] getAddress() {
        return address;
    }
    public void setAddress(List[Address] address) {
        this.address = address;
    }
}

katiaSouza avatar Jun 20 '13 14:06 katiaSouza

@katiaSouza Sorry I've been kinda swamped at my day job. It might be a few days before I get to this

dilipkrish avatar Jun 27 '13 04:06 dilipkrish

@dilipkrish Ok, thanks by your attention.

katiaSouza avatar Jun 27 '13 13:06 katiaSouza