| <?xml version="1.0" encoding="UTF-8"?> |
| <xsd:schema |
| targetNamespace="http://www.eclipse.org/skalli/2010/API/Extension-Review" |
| xmlns="http://www.eclipse.org/skalli/2010/API/Extension-Review" |
| xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| elementFormDefault="qualified" |
| attributeFormDefault="unqualified" |
| version="1.0"> |
| <xsd:annotation> |
| <xsd:documentation xml:lang="EN"> |
| Copyright (c) 2010-2014 SAP AG and others. |
| All rights reserved. This program and the accompanying materials |
| are made available under the terms of the Eclipse Public License v1.0 |
| which accompanies this distribution, and is available at |
| http://www.eclipse.org/legal/epl-v10.html |
| |
| Contributors: |
| SAP AG - initial API and implementation |
| </xsd:documentation> |
| </xsd:annotation> |
| <xsd:annotation> |
| <xsd:documentation xml:lang="EN"> |
| This XML schema defines the Skalli REST API for the Review model extension. |
| </xsd:documentation> |
| </xsd:annotation> |
| |
| <!-- BEGIN of common declarations --> |
| <xsd:include schemaLocation="../../org.eclipse.skalli.api/schemas/common.xsd" /> |
| <!-- END of common declarations --> |
| |
| <xsd:element name="reviews" type="ReviewExtension" /> |
| |
| <xsd:complexType name="ReviewExtension"> |
| <xsd:complexContent> |
| <xsd:extension base="Extension"> |
| <xsd:sequence> |
| <xsd:element name="review" type="Review" minOccurs="0" maxOccurs="unbounded" /> |
| </xsd:sequence> |
| </xsd:extension> |
| </xsd:complexContent> |
| </xsd:complexType> |
| |
| <xsd:complexType name="Review"> |
| <xsd:sequence> |
| <xsd:element name="voter" type="xsd:string"> |
| <xsd:annotation> |
| <xsd:documentation xml:lang="EN"> |
| The unique identifier of the user that reviewed the project. |
| </xsd:documentation> |
| </xsd:annotation> |
| </xsd:element> |
| <xsd:element name="comment" type="xsd:string"> |
| <xsd:annotation> |
| <xsd:documentation xml:lang="EN"> |
| The comment entered by the reviewer. |
| </xsd:documentation> |
| </xsd:annotation> |
| </xsd:element> |
| <xsd:element name="timestamp" type="xsd:long"> |
| <xsd:annotation> |
| <xsd:documentation xml:lang="EN"> |
| The creation timestamp (in milliseconds since 1970) of the review. |
| </xsd:documentation> |
| </xsd:annotation> |
| </xsd:element> |
| <xsd:element name="rating" type="xsd:string"> |
| <xsd:annotation> |
| <xsd:documentation xml:lang="EN"> |
| The rating of the project given by the reviewer. |
| One of UP, DOWN, NONE, FACE_SMILE_BIG, FACE_SMILE, FACE_PLAIN, |
| FACE_SAD or FACE_CRYING. |
| </xsd:documentation> |
| </xsd:annotation> |
| </xsd:element> |
| </xsd:sequence> |
| </xsd:complexType> |
| </xsd:schema> |