<commit_before>---
layout: null
sitemap:
exclude: 'yes'
---
openapi: 3.0.0
info:
  version: '1.0'
  title: {{ site.title }} – Blog API
  description: API documentation for my personal blog.
  license:
    name: Apache License Version 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
  - url: {{ site.url }}/api
    description: {{ site.title }} – Blog API
paths:
  /links.json:
    get:
      summary: External links
      description: Returns list of links related to the author of the blog.
      responses:
        '200':
          description: List of links
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    name:
                      type: string
                      example: GitHub
                    type:
                      type: string
                      example: github
                    url:
                      type: string
                      example: https://github.com/sczerwinski
        default:
          description: Unexpected error
  /news.json:
    get:
      summary: Latest news
      description: Returns list of latest news publish on the blog website.
      responses:
        '200':
          description: List of news
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: integer
                      example: 1
                    title:
                      type: string
                      example: New post published
                    abstract:
                      type: string
                      example: In my new post, I describe…
                    url:
                      type: string
                      example: {{ site.url }}/2019/03/20/random-post.html
                    date:
                      type: string
                      example: '2019-03-20'
        default:
          description: Unexpected error
  /posts.json:
    get:
      summary: Blog posts
      description: Returns list of blog posts.
      responses:
        '200':
          description: List of blog posts
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      example: random-post
                    title:
                      type: string
                      example: Random Post
                    abstract:
                      type: string
                      example: In my new post, I describe…
                    image:
                      type: string
                      example: {{ site.url }}/assets/img/post/2019-03-20-random-post.png
                    tags:
                      type: array
                      items:
                        type: string
                        example: tagname
                    url:
                      type: string
                      example: {{ site.url }}/2019/03/20/random-post.html
                    date:
                      type: string
                      example: '2019-03-20'
        default:
          description: Unexpected error
  /projects.json:
    get:
      summary: Open-source projects
      description: Returns list of open-source projects.
      responses:
        '200':
          description: List of projects
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      example: random-project
                    title:
                      type: string
                      example: Random Project
                    abstract:
                      type: string
                      example: My random open-source project…
                    url:
                      type: string
                      example: {{ site.url }}/projects/random-project.html
        default:
          description: Unexpected error<commit_msg>Added format and nullability information in Swagger YAML file<commit_after>---
layout: null
sitemap:
exclude: 'yes'
---
openapi: 3.0.0
info:
  version: '1.0'
  title: {{ site.title }} – Blog API
  description: API documentation for my personal blog.
  license:
    name: Apache License Version 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
servers:
  - url: {{ site.url }}/api
    description: {{ site.title }} – Blog API
paths:
  /links.json:
    get:
      summary: External links
      description: Returns list of links related to the author of the blog.
      responses:
        '200':
          description: List of links
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    name:
                      type: string
                      example: GitHub
                    type:
                      type: string
                      example: github
                    url:
                      type: string
                      example: https://github.com/sczerwinski
        default:
          description: Unexpected error
  /news.json:
    get:
      summary: Latest news
      description: Returns list of latest news publish on the blog website.
      responses:
        '200':
          description: List of news
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: integer
                      format: int32
                      example: 1
                    title:
                      type: string
                      example: New post published
                    abstract:
                      type: string
                      nullable: true
                      example: In my new post, I describe…
                    url:
                      type: string
                      example: {{ site.url }}/2019/03/20/random-post.html
                    date:
                      type: string
                      format: date
                      example: '2019-03-20'
        default:
          description: Unexpected error
  /posts.json:
    get:
      summary: Blog posts
      description: Returns list of blog posts.
      responses:
        '200':
          description: List of blog posts
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      example: random-post
                    title:
                      type: string
                      example: Random Post
                    abstract:
                      type: string
                      nullable: true
                      example: In my new post, I describe…
                    image:
                      type: string
                      nullable: true
                      example: {{ site.url }}/assets/img/post/2019-03-20-random-post.png
                    tags:
                      type: array
                      items:
                        type: string
                        example: tagname
                    url:
                      type: string
                      example: {{ site.url }}/2019/03/20/random-post.html
                    date:
                      type: string
                      format: date
                      example: '2019-03-20'
        default:
          description: Unexpected error
  /projects.json:
    get:
      summary: Open-source projects
      description: Returns list of open-source projects.
      responses:
        '200':
          description: List of projects
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      example: random-project
                    title:
                      type: string
                      example: Random Project
                    abstract:
                      type: string
                      nullable: true
                      example: My random open-source project…
                    url:
                      type: string
                      example: {{ site.url }}/projects/random-project.html
        default:
          description: Unexpected error
{'fraction_non_alphanumeric': 0.06198713683743624, 'fraction_numerical': 0.013972055888223553, 'mean_word_length': 0.8676744667633051, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '2798240', 'n_tokens_mistral': 2059, 'n_tokens_neox': 1833, 'n_words': 605}