Vizzuality/landgriffon

View on GitHub
api/src/modules/contextual-layers/dto/get-contextual-layer-h3-response.dto.ts

Summary

Maintainability
A
1 hr
Test Coverage
import { ApiProperty } from '@nestjs/swagger';
import { H3IndexValueData } from 'modules/h3-data/h3-data.entity';

export class GetContextualLayerH3ResponseDto {
  @ApiProperty({
    type: 'array',
    items: {
      type: 'object',
      properties: {
        h: {
          type: 'string',
        },
        v: {
          type: 'number',
        },
      },
    },
  })
  data: H3IndexValueData[];
}