<commit_before>#%RAML 1.0
title: ItsYouOnline
version: 0.1
baseUri: /users
securitySchemes:
  - oauth_2_0: !include securitySchemes/oauth_2_0.raml
types:
  phonenumber:
    pattern: ^\+[0-9]+$
  user:
    properties:
        username: string
        expire?: date
        email?:
          properties:
            []:
              type: string
        phone?:
          properties:
            []:
              type: phonenumber

    example:
        username: bob
        expire: 2018-10-20
        email:
            work: <EMAIL>
            home: <EMAIL>
            "dance club": <EMAIL>
        phone:
          be: +3212341234123
          eg: +2012341234123

  userview:
    properties:
        username: string
        email?: string[]
        phone?: phonenumber[]

/users:
  post:
    description: Register a new user
    body:
        application/json:
            type: user
  /{username}/info:
    securedBy: [ oauth_2_0 ]<commit_msg>Added address to the users spec<commit_after>#%RAML 1.0
title: ItsYouOnline
version: 0.1
baseUri: /users
securitySchemes:
  - oauth_2_0: !include securitySchemes/oauth_2_0.raml
types:
  phonenumber:
    pattern: ^\+[0-9]+$
  address:
    properties:
        city:
            type: string
            maxLength: 30
        street:
            type: string
            maxLength: 50
        nr:
            type: string
            maxLength: 10
        other?:
            type: string
            maxLength: 30
        country:
            type: string
            maxLength: 40
        postalcode:
            type: string
            maxLength: 20
  user:
    properties:
        username:
            type: string
            maxLength: 30
        expire?: date
        email?:
          properties:
            []:
              type: string
        phone?:
          properties:
            []:
              type: phonenumber
        address?:
          properties:
            []:
              type: address

    example:
        username: bob
        expire: 2018-10-20
        email:
            work: <EMAIL>
            home: <EMAIL>
            "dance club": <EMAIL>
        phone:
          be: +3212341234123
          eg: +2012341234123
        address:
            home:
                city: Springfield
                street: Main street
                nr: 45B
                country: Tomorrowland
                postalcode: T-9450

  userview:
    properties:
        username: string
        email?: string[]
        phone?: phonenumber[]

/users:
  post:
    description: Register a new user
    body:
        application/json:
            type: user
  /{username}/info:
    securedBy: [ oauth_2_0 ]
{'fraction_non_alphanumeric': 0.08594917787742899, 'fraction_numerical': 0.04185351270553064, 'mean_word_length': 1.3077586206896552, 'pattern_counts': {'":': 2, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3719177', 'n_tokens_mistral': 847, 'n_tokens_neox': 757, 'n_words': 197}