Skip to content

Commit

Permalink
Add SkipParentValidation annotation from v1 (Azure#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianghaolu authored Aug 29, 2018
1 parent c27b25f commit 96e040c
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/

package com.microsoft.rest.v2.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
* Annotation used for notifying the validator to skip
* validation for the properties in the parent class.
*
*/
@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface SkipParentValidation {
}

0 comments on commit 96e040c

Please sign in to comment.