RepositoryFlag

com.worxbend.codeberg4s.repositories.hooks.RepositoryFlag$package.RepositoryFlag

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def from(value: String): Either[ValidationError, RepositoryFlag]

Parses a flag name.

Parses a flag name.

Trims surrounding whitespace. Rejects an empty or blank value, a value containing /, a value containing a control character, and the traversal segments . and .. — see com.worxbend.codeberg4s.repositories.PathSegment for why that is a security boundary and not a convenience. Nothing else is checked: the vocabulary belongs to the instance, and a flag this library refused would be one the caller could not set.

Attributes

Returns

the flag, or a ValidationError on the "repositoryFlag" field

Extensions

Extensions

extension (flag: RepositoryFlag)
def value: String

The flag as a string, ready to be used as one path segment or rendered into a request body.

The flag as a string, ready to be used as one path segment or rendered into a request body.

Attributes