Class OasInvalidPropertyNameRule

    • Constructor Detail

      • OasInvalidPropertyNameRule

        public OasInvalidPropertyNameRule​(ValidationRuleMetaData ruleInfo)
        Constructor.
        Parameters:
        ruleInfo -
    • Method Detail

      • isValidDefinitionName

        protected boolean isValidDefinitionName​(String name)
        Returns true if the definition name is valid.
        Parameters:
        name -
      • isValidScopeName

        protected boolean isValidScopeName​(String scope)
        Returns true if the scope name is valid.
        Parameters:
        scope -
      • findDuplicateParametersInPath

        protected List<String> findDuplicateParametersInPath​(List<ValidationRule.PathSegment> pathSegments)
        Finds path segments that are duplicates i.e. they have the same formal name used across multiple segments. For example, in a path like /prefix/{var1}/{var1}, var1 is used in multiple segments.
        Parameters:
        pathSegments -